{
statements.addAll(splitInlineStatements(line));
}
else
{
String trimmed = new SpecialCharactersReplacer().unescape(readSqlStatement.toString().trim());
if (trimmed.length() > 0)
{
statements.add(trimmed);
}
}
readSqlStatement.setLength(0);
}
}
if (shouldExecuteRemainingStatements(readSqlStatement))
{
statements.add(new SpecialCharactersReplacer().unescape(readSqlStatement.toString().trim()));
}
}
catch (Exception e)
{
throw new RuntimeException("Failed parsing file.", e);