SQLException if there are single quotes in ChangeSet

Description

In case of a single quote in a comment, there are errors when applying this changelog.

A changeset like this:

<changeSet id="123" author="me">
<createTable tableName="TABLE" remarks="It's a table.">
....

causes the following exception when being applied:

liquibase.exception.DatabaseException: java.sql.SQLException: Invalid SQL statement or JDBC escape, terminating ''' not found.
at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:316)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122)
at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1221)
at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1204)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:550)

This error does occur neither in version 3.1.1 nor in version 3.2.3, only when using version 3.3.0 this exception was thrown.

Bug seems to be a similiar issue and has been fixed in a previous version.

Environment

Windows, MSSQL

Status

Assignee

Unassigned

Reporter

Maren

Labels

None

Components

Fix versions

Affects versions

3.3.0

Priority

Major