#516 - DdlParser for seed and init sql is not ignoring sql comment lines (starting with --)

This commit is contained in:
Robin Bygrave
2016-01-07 14:03:17 +13:00
parent c7300a1707
commit 0351a15067
2 changed files with 63 additions and 0 deletions
@@ -81,6 +81,11 @@ public class DdlParser {
return;
}
if (sb.length() == 0 && (line.isEmpty() || line.startsWith("--"))) {
// ignore leading empty lines and sql comments
return;
}
if (inDbProcedure) {
sb.append(line).append(" ");
return;