Commit 2ab7ece3 authored by Mark Rotteveel's avatar Mark Rotteveel Committed by Stephane Nicoll

Add support for jdbc:firebird: url prefix

See gh-15841
parent 7e51e1a0
...@@ -140,7 +140,7 @@ public enum DatabaseDriver { ...@@ -140,7 +140,7 @@ public enum DatabaseDriver {
@Override @Override
protected Collection<String> getUrlPrefixes() { protected Collection<String> getUrlPrefixes() {
return Collections.singleton("firebirdsql"); return Arrays.asList("firebirdsql", "firebird");
} }
@Override @Override
......
...@@ -129,6 +129,8 @@ public class DatabaseDriverTests { ...@@ -129,6 +129,8 @@ public class DatabaseDriverTests {
.isEqualTo(DatabaseDriver.SQLSERVER); .isEqualTo(DatabaseDriver.SQLSERVER);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebirdsql://localhost/sample")) assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebirdsql://localhost/sample"))
.isEqualTo(DatabaseDriver.FIREBIRD); .isEqualTo(DatabaseDriver.FIREBIRD);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebird://localhost/sample"))
.isEqualTo(DatabaseDriver.FIREBIRD);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:db2://localhost:50000/sample ")) assertThat(DatabaseDriver.fromJdbcUrl("jdbc:db2://localhost:50000/sample "))
.isEqualTo(DatabaseDriver.DB2); .isEqualTo(DatabaseDriver.DB2);
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:as400://localhost")) assertThat(DatabaseDriver.fromJdbcUrl("jdbc:as400://localhost"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment