-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no space after sql comment dashes causes parse error on MySql #50
Comments
Is this an error with the hibernate extension? Or the general liquibase formatted sql support? |
This issue is a general Liquibase SQL Changeset error. For example:
Performing a syntax check (or execution) against MySQL returns: 13:55:22 --liquibase formatted sql The fix would be to allow liquibase to recognize a space after the "--" in the comment. This is not related to liquibase-hibernate specifically at all. |
This was addressed by CORE-1032. |
If you write a migration in raw SQL format and include rollback statements or other adnotations using the -- Mysql fails to recognize it as comments. On the other hand if you introduce the mandatory space after the dashes liquibase does not recognize it as its valid statements.
Please take a look at: http://dev.mysql.com/doc/refman/5.5/en/ansi-diff-comments.html
The text was updated successfully, but these errors were encountered: