mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#516 - DdlParser for seed and init sql is not ignoring sql comment lines (starting with --)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user