Add support for jdbc:firebird: url prefix

See gh-15841
This commit is contained in:
Mark Rotteveel
2019-02-04 12:48:24 +01:00
committed by Stephane Nicoll
parent 7e51e1a076
commit 2ab7ece36d
2 changed files with 3 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ public enum DatabaseDriver {
@Override
protected Collection<String> getUrlPrefixes() {
return Collections.singleton("firebirdsql");
return Arrays.asList("firebirdsql", "firebird");
}
@Override

View File

@@ -129,6 +129,8 @@ public class DatabaseDriverTests {
.isEqualTo(DatabaseDriver.SQLSERVER);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebirdsql://localhost/sample"))
.isEqualTo(DatabaseDriver.FIREBIRD);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebird://localhost/sample"))
.isEqualTo(DatabaseDriver.FIREBIRD);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:db2://localhost:50000/sample "))
.isEqualTo(DatabaseDriver.DB2);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:as400://localhost"))