Fix creation of users in CREATE DATABASE IF EXISTS
@@ -65,7 +65,6 @@ public class OCreateDatabaseStatement extends OSimpleExecServerStatement {
throw new OCommandExecutionException(
"Could not create database " + type.getStringValue() + ":" + e.getMessage());
}
- }
if (!users.isEmpty()) {
try (ODatabaseDocumentInternal db = server.openNoAuthorization(dbName)) {
@@ -74,6 +73,7 @@ public class OCreateDatabaseStatement extends OSimpleExecServerStatement {
}
}
}
+ }
OInternalResultSet rs = new OInternalResultSet();
rs.add(result);
