This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openjpa.git
The following commit(s) were added to refs/heads/master by this push: new 8dbdc14 [OPENJPA-2829] ensure empty lines are ignored for executeScript action 8dbdc14 is described below commit 8dbdc143219734d3c8ab05f13fa11b791e643458 Author: Romain Manni-Bucau <rmannibu...@gmail.com> AuthorDate: Tue Sep 15 16:57:43 2020 +0200 [OPENJPA-2829] ensure empty lines are ignored for executeScript action --- .../src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java index f7d528f..f57293d 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaTool.java @@ -529,6 +529,9 @@ public class SchemaTool { if (semiColonPosition != -1) { sql = sql.substring(0, semiColonPosition); } + if (sql.isEmpty()) { + continue; + } script.add(sql); }