Skip to content

Commit 902b548

Browse files
committed
Fix test failure on Firebird 5 and older
1 parent 93f7a16 commit 902b548

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/org/firebirdsql/jdbc/FBCallableStatementSchemaTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.util.stream.Stream;
1818

1919
import static org.firebirdsql.common.FBTestProperties.getConnectionViaDriverManager;
20+
import static org.firebirdsql.common.FBTestProperties.getDefaultSupportInfo;
2021
import static org.firebirdsql.common.FbAssumptions.assumeSchemaSupport;
2122
import static org.firebirdsql.common.assertions.ResultSetAssertions.assertNextRow;
2223
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -40,6 +41,10 @@ static void requiresSchemaSupport() {
4041
}
4142

4243
private static List<String> dbInitStatements() {
44+
if (!getDefaultSupportInfo().supportsSchemas()) {
45+
// UsesDatabaseForAll extension is registered before evaluation of requiresSchemaSupport
46+
return List.of();
47+
}
4348
return Stream.of(
4449
Stream.of("T1", "T2", "T3").map(FBCallableStatementSchemaTest::createSchema),
4550
Stream.of(

0 commit comments

Comments
 (0)