![]() ![]() Note: Also posted this issue on Flyway GitHub. Location : db/migration/V1_create_products.sql (/Users/wai_loon/IdeaProjects/deposits/target/classes/db/migration/V1_create_products.sql)Īt .(ExecutableSqlScript.java:331)Īt .(ExecutableSqlScript.java:301)Īt .(ExecutableSqlScript.java:243)Īt .(SqlMigrationExecutor.java:91)Īt .(DbMigrate.java:352)Ĭaused by: .jdbc4.MySQLSynta圎rrorException: 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 '-HelloĪt 0(Native Method)Īt (NativeConstructorAccessorImpl.java:62)Īt (DelegatingConstructorAccessorImpl.java:45)Īt .newInstance(Constructor.java:423)Īt .handleNewInstance(Util.java:425)Īt .getInstance(Util.java:408)Īt .createSQLException(SQLError.java:944)Īt .checkErrorPacket(MysqlIO.java:3976)Īt .checkErrorPacket(MysqlIO.java:3912)Īt .sendCommand(MysqlIO.java:2530)Īt .sqlQueryDirect(MysqlIO.java:2683)Īt .execSQL(ConnectionImpl.java:2482)Īt .execSQL(ConnectionImpl.java:2440)Īt .executeInternal(StatementImpl.java:845)Īt .execute(StatementImpl.java:745)Īt .(JdbcTemplate.java:244)Īt .(StandardSqlStatement.java:44)Īt .(ExecutableSqlScript.java:280) It dumps one or more MySQL databases for backup or transfer to another SQL server. Message : 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 '-Hello The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. Caused by: .sqlscript.FlywaySqlScriptException: I expect to see DB Migration to be successful, as it was in 5.0.7. My Flyway script contains a single-line comment starting with "-" but not followed by a whitespace. I upgraded from Flyway 5.0.7 to 5.1.4 for my Spring Boot application, then tried to run a unit test but it failed at DB migration step. ![]()
0 Comments
Leave a Reply. |