Semicolons in comments and strings cause parsing errors

Description

This is either a regression of CORE-288, or that issue was never actually resolved. Semicolons in comments cause statement splitting errors

For example:

Splits as:

  1. Statement

  2. Statement

  3. Statement

  4. Statement

Environment

None

Activity

Show:

Nathan Voxland November 8, 2011 at 6:44 AM

Did you include the comments in a <rollback> block?

Ian Brandt August 31, 2011 at 11:04 PM

Some prior art for comparison:

  1. LiquiBase (Us) (Apache 2.0): liquibase.util.StringUtils.processMutliLineSQL(...)

  2. Ant (Apache 2.0): org.apache.tools.ant.taskdefs.SQLExec

  3. SQL Maven Plugin (Apache 2.0): org.codehaus.mojo.sql.SqlSplitter

  4. MyBatis (Apache 2.0): org.apache.ibatis.jdbc.ScriptRunner

  5. H2 (dual licensed): org.h2.util.ScriptReader...

  6. Spring Test (Apache 2.0): org.springframework.test.jdbc.SimpleJdbcTestUtils.executeSqlScript(...)

  7. HenPlus (GPLv3): henplus.SQLStatementSeparator

All but HenPlus appear license compatible.

Details

Reporter

Affects versions

Priority

Created August 31, 2011 at 10:45 PM
Updated June 12, 2013 at 6:07 PM