Skip to content

Commit

Permalink
0003986: Firebird mis-identified as DB2
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed May 31, 2019
1 parent 3ff364e commit 89579b6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -250,7 +250,7 @@ public static String[] determineDatabaseNameVersionSubprotocol(DataSource dataSo
}
}

if (nameVersion[0].toLowerCase().indexOf(DatabaseNamesConstants.DB2) != -1) {
if (nameVersion[0].toLowerCase().indexOf(DatabaseNamesConstants.DB2) != -1 && nameVersion[2].equalsIgnoreCase("db2")) {
String productVersion = getDatabaseProductVersion(dataSource);
if (nameVersion[0].toUpperCase().indexOf("Z") != -1
|| (productVersion != null && productVersion.startsWith("DSN"))) {
Expand Down

0 comments on commit 89579b6

Please sign in to comment.