role nocreateuser removes in postgres 9.6

This commit is contained in:
Peter Hormanns 2018-04-12 14:01:21 +02:00
parent b0172a377a
commit 2beb2045f2

View File

@ -22,7 +22,7 @@ public class PgSqlUserProcessorFactory implements EntityProcessorFactory {
JDBCProcessor aJDBCP = PgSqlDatabaseProcessorFactory.createPostgreSqlAdminProcessor(); JDBCProcessor aJDBCP = PgSqlDatabaseProcessorFactory.createPostgreSqlAdminProcessor();
String aName = AbstractEntity.escapeString(dbu.getName()); String aName = AbstractEntity.escapeString(dbu.getName());
String aPassword = AbstractEntity.escapeString(dbu.getPassword()); String aPassword = AbstractEntity.escapeString(dbu.getPassword());
aJDBCP.addSQL("CREATE USER " + aName + " NOCREATEDB NOCREATEUSER" + " ENCRYPTED PASSWORD '" + aPassword + "'"); aJDBCP.addSQL("CREATE USER " + aName + " NOCREATEDB ENCRYPTED PASSWORD '" + aPassword + "'");
return aJDBCP; return aJDBCP;
} }