start working on quartz fix

This commit is contained in:
Ken Stevens 2019-12-11 13:41:27 -05:00
parent 176bf657a7
commit da5034959b
1 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,9 @@ public class SchemaInitializationProvider implements ISchemaInitializationProvid
throw new ConfigurationException("Schema initialization script " + initScript + " not found on classpath");
}
// Assumes no escaped semicolons...
String[] statements = IOUtils.toString(sqlFileInputStream, Charsets.UTF_8).split("\\;");
String sqlString = IOUtils.toString(sqlFileInputStream, Charsets.UTF_8);
String sqlStringNoComments = stripComments(sqlString);
String[] statements = sqlStringNoComments.split("\\;");
for (String statement : statements) {
String cleanedStatement = clean(statement);
if (!isBlank(cleanedStatement)) {