Skip to content

Commit 2ab7ece

Browse files
mrotteveelsnicoll
authored andcommitted
Add support for jdbc:firebird: url prefix
See gh-15841
1 parent 7e51e1a commit 2ab7ece

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected boolean matchProductName(String productName) {
140140

141141
@Override
142142
protected Collection<String> getUrlPrefixes() {
143-
return Collections.singleton("firebirdsql");
143+
return Arrays.asList("firebirdsql", "firebird");
144144
}
145145

146146
@Override

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ public void databaseJdbcUrlLookups() {
129129
.isEqualTo(DatabaseDriver.SQLSERVER);
130130
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebirdsql://localhost/sample"))
131131
.isEqualTo(DatabaseDriver.FIREBIRD);
132+
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:firebird://localhost/sample"))
133+
.isEqualTo(DatabaseDriver.FIREBIRD);
132134
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:db2://localhost:50000/sample "))
133135
.isEqualTo(DatabaseDriver.DB2);
134136
assertThat(DatabaseDriver.fromJdbcUrl("jdbc:as400://localhost"))

0 commit comments

Comments
 (0)