Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 279 by
haam.t...@gmail.com: migrate fails on .sql files with
utf-8 signature
http://code.google.com/p/flyway/issues/detail?id=279
Maven plugin task, flyway:migrate against a MySQL database, fails if .sql
file has UTF-8 signature.
I tried explicitly setting the <encoding> property to UTF-8, and even
appending useUnicode=true&characterEncoding=utf8 to the MySQL URL. No
luck, still came back with:
[ERROR] com.googlecode.flyway.core.exception.FlywayException: Error
executing statement at line 1: ?SELECT 1 FROM DUAL
[ERROR] Caused by
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an
error in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near 'SELECT 1 FROM DUAL' at
line 1
Attached is test file with utf-8 signature.
Attachments:
utf8.sql 24 bytes