no error on missing mysql database

This commit is contained in:
peter 2013-05-26 22:20:47 +02:00
parent 3b01d27a1d
commit ae9911808f

View File

@ -56,7 +56,7 @@ public class MySqlDatabaseProcessorFactory implements EntityProcessorFactory {
String aName = AbstractEntity.escapeString(db.getName()); String aName = AbstractEntity.escapeString(db.getName());
String aOwner = AbstractEntity.escapeString(db.getOwner()); String aOwner = AbstractEntity.escapeString(db.getOwner());
aJDBCP.addSQL("REVOKE ALL ON " + aName + ".* FROM '" + aOwner + "'@'%'"); aJDBCP.addSQL("REVOKE ALL ON " + aName + ".* FROM '" + aOwner + "'@'%'");
aJDBCP.addSQL("DROP DATABASE " + aName); aJDBCP.addSQL("DROP DATABASE IF EXISTS " + aName);
return aJDBCP; return aJDBCP;
} }
} }