File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/io/ebean/migration/ddl Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -69,14 +69,18 @@ void lineContainsDollars(String line) {
6969 if (!trimDelimiter ) {
7070 sb .append (line ).append (EOL );
7171 }
72+ inDbProcedure = true ;
7273 }
73- inDbProcedure = !inDbProcedure ;
7474 }
7575
7676 void endOfStatement (String line ) {
7777 // end of Db procedure
7878 sb .append (line );
7979 statements .add (sb .toString ().trim ());
80+ newBuffer ();
81+ }
82+
83+ private void newBuffer () {
8084 quoteCount = 0 ;
8185 lineCount = 0 ;
8286 inDbProcedure = false ;
@@ -176,7 +180,7 @@ void endOfContent() {
176180 String remaining = sb .toString ().trim ();
177181 if (remaining .length () > 0 ) {
178182 statements .add (remaining );
179- sb = new StringBuilder ();
183+ newBuffer ();
180184 }
181185 }
182186 }
You can’t perform that action at this time.
0 commit comments