Skip to content

Commit db93b1e

Browse files
committed
allow database '_system'
1 parent 2a2d8d5 commit db93b1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/arangodb/BaseArangoDriver.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ protected void validateDatabaseName(String database, boolean allowNull) throws A
102102
}
103103
} else {
104104
valid = databaseNamePattern.matcher(database).matches();
105+
if (database.equals("_system")) {
106+
valid = true;
107+
}
105108
}
106109
if (!valid) {
107110
throw new ArangoException("invalid format database:" + database);

0 commit comments

Comments
 (0)