Skip to content

Commit aed78fc

Browse files
authored
Properly process versions containing "-SNAPSHOT" (#112)
1 parent 1a6919e commit aed78fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver/src/test/java/oracle/nosql/driver/ProxyTestBase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,10 @@ protected static int intVersion(String version) {
650650
if (arr == null || arr.length != 3) {
651651
return -1;
652652
}
653+
int off = arr[2].indexOf("-SNAPSHOT");
654+
if (off > 0) {
655+
arr[2] = arr[2].substring(0, off);
656+
}
653657
try {
654658
return (Integer.parseInt(arr[0]) * 1000000) +
655659
(Integer.parseInt(arr[1]) * 1000) +

0 commit comments

Comments
 (0)