diff --git a/hibernate-core/src/main/antlr/sql-stmt.g b/hibernate-core/src/main/antlr/sql-stmt.g index 35682415cd..ad2514c5ef 100644 --- a/hibernate-core/src/main/antlr/sql-stmt.g +++ b/hibernate-core/src/main/antlr/sql-stmt.g @@ -123,7 +123,7 @@ options { } STMT_END - : ';' + : ';' ( '\t' | ' ' | '\r' | '\n' )* ; NOT_STMT_END diff --git a/hibernate-core/src/test/resources/org/hibernate/test/fileimport/multi-line-statements.sql b/hibernate-core/src/test/resources/org/hibernate/test/fileimport/multi-line-statements.sql index 6587b2887b..c48294d473 100644 --- a/hibernate-core/src/test/resources/org/hibernate/test/fileimport/multi-line-statements.sql +++ b/hibernate-core/src/test/resources/org/hibernate/test/fileimport/multi-line-statements.sql @@ -1,3 +1,4 @@ + -- Sample file used to test import feature of multiline SQL script (HHH-2403). -- Contains various SQL instructions with comments. @@ -27,4 +28,5 @@ INSERT INTO test_data (id, text) ( 4 -- another record , NULL - ); \ No newline at end of file + ); +