Skip to content

Commit f15c7c0

Browse files
committed
When skipping compatibility check, always assume LATEST utPLSQL version
1 parent bb7407b commit f15c7c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/utplsql/api/Version.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class Version implements Comparable<Version> {
3434
private final static Map<String, Version> knownVersions =
3535
Stream.of(V3_0_0, V3_0_1, V3_0_2, V3_0_3, V3_0_4, V3_1_0, V3_1_1, V3_1_2, V3_1_3, V3_1_4, V3_1_5, V3_1_6)
3636
.collect(toMap(Version::toString, Function.identity()));
37+
public final static Version LATEST = V3_1_6;
3738

3839
private final String origString;
3940
private final Integer major;

src/main/java/org/utplsql/api/compatibility/CompatibilityProxy.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
public class CompatibilityProxy {
2626

2727
public static final String UTPLSQL_COMPATIBILITY_VERSION = "3";
28-
private static final String UTPLSQL_API_VERSION = "3.1.1";
2928
private final DatabaseInformation databaseInformation;
3029
private Version databaseVersion;
3130
private boolean compatible = false;
@@ -88,7 +87,7 @@ private void doCompatibilityCheckWithDatabase(Connection conn) throws SQLExcepti
8887
* Just prepare the proxy to expect compatibility, expecting the database framework to be the same version as the API
8988
*/
9089
private void doExpectCompatibility() {
91-
databaseVersion = Version.create(UTPLSQL_API_VERSION);
90+
databaseVersion = Version.LATEST;
9291
compatible = true;
9392
}
9493

0 commit comments

Comments
 (0)