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
MySQL CharSet cast support #456
Comments
From axel.fontaine.business@gmail.com on March 14, 2013 18:55:24 Could you try again with 2.1.1 (should be available shortly on Maven Central) and let me know if it is fixed or not? Thanks |
From garich...@handshake.de on March 15, 2013 09:00:23 INSERT INTO |
From axel.fontaine.business@gmail.com on March 15, 2013 21:38:30 Could you post a small script that triggers the error? Thanks |
From garich...@handshake.de on March 19, 2013 16:12:36 perhaps it's the size of the file … can I send my error file to your email address? 378K V4_0_7__opullenter_ochse.sql.bz2 Gregor |
From axel.fontaine.business@gmail.com on March 20, 2013 09:25:43 Please try to isolate the couple of statements that trigger the issue. I doubt it is the file size, as Flyway is being used by some people with files larger than 1 GB. Cheers |
From garich...@handshake.de on March 21, 2013 15:12:44 I reduced the file to the above mentioned (see attachment) SQL statements but no error… …could take some time Gregor |
From axel.fontaine.business@gmail.com on March 21, 2013 20:16:16 Cheers P.S.: Please post your original file as well, just in case. |
From axel.fontaine.business@gmail.com on April 10, 2013 18:16:27 any news? Cheers |
From garich...@handshake.de on April 11, 2013 07:49:29 I didn't have time so far… …but I really do it on this Friday Gregor |
From garich...@handshake.de on April 12, 2013 15:33:00 I couldn't pinpoint the error spending line(s)… …so I upload the whole thing Gregor |
+1 |
I believe the problem with this file is the following statement:
In particular, this segment: Here is a simple script that produces the same issue:
|
Fixed thanks to Adam's pull request. |
Original author: garich...@handshake.de (March 14, 2013 14:39:26)
Hi,
I get an error (see below) if I try to insert a char-row (mysql) with flyway (V2.1) migrate …
but if I do the same insert with flyway V1.6.1 it works perfectly…
command line output of flyway 2.1:
INSERT INTO
bonlayout
(vertriebslinie
,lang
,position
,layout
) VALUES ('CH01RE', 'en', 'EC_BLZ_1_0', '<RIGHT>Bank code: ___________________________</RIGHT>');INSERT INTO
bonlayout
(vertriebslinie
,lang
,position
,layout
) VALUES ('CH01RE', 'en', 'EC_KNR_1_0', '<RIGHT>Account #: ___________________________</RIGHT>')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 'INSERT INTO
Farbpalette
(Farbcode
,Farbe
) VALUES (0, '_undefiniert');INSE' at line 38
ERROR: FlywayException: Migration of schema
kasse
to version 4.0.7 failed! Please restore backups and roll back database and code!ERROR: Occured in com.googlecode.flyway.core.command.DbMigrate.migrate() at line 194
Original issue: http://code.google.com/p/flyway/issues/detail?id=451
The text was updated successfully, but these errors were encountered: