Skip to content

Commit d1398c3

Browse files
committed
Firebird 6.0 does not support multi-file databases
1 parent 5b44924 commit d1398c3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/main/org/firebirdsql/util/FirebirdSupportInfo.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,13 @@ public boolean supportsMetadataPrivileges() {
714714
return isVersionEqualOrAbove(3);
715715
}
716716

717+
/**
718+
* @return {@code true} if server supports legacy multi-file databases
719+
*/
720+
public boolean supportsLegacyMultiFileDatabase() {
721+
return isVersionBelow(6);
722+
}
723+
717724
/**
718725
* @return the ODS version used when creating a database or after using the gfix/service repair upgrade database
719726
* option

src/test/org/firebirdsql/management/FBBackupManagerTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
import static java.lang.String.format;
4747
import static org.firebirdsql.common.FBTestProperties.*;
48+
import static org.firebirdsql.common.FbAssumptions.assumeFeature;
4849
import static org.firebirdsql.common.matchers.SQLExceptionMatchers.errorCodeEquals;
4950
import static org.firebirdsql.gds.VaxEncoding.iscVaxInteger;
5051
import static org.firebirdsql.gds.VaxEncoding.iscVaxInteger2;
@@ -243,6 +244,8 @@ void testRestorePageSize32768() throws Exception {
243244

244245
@Test
245246
void testBackupMultiple() throws Exception {
247+
assumeFeature(FirebirdSupportInfo::supportsLegacyMultiFileDatabase,
248+
"Test requires legacy multi-file database support");
246249
usesDatabase.createDefaultDatabase();
247250
backupManager.clearBackupPaths();
248251
backupManager.clearRestorePaths();

0 commit comments

Comments
 (0)