SQL Server: error parsing string literals starting with 'as' #2060
Which version and edition of Flyway are you using?
5.1.3 Community Edition
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
SQL Server 2014
Which operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
I get the error "Incorrect syntax near 'GO'".
The parser seems to be confused by the contents of the "exists ()" starting on line 55. If I change line 55 of the migration to
I have tried running flyway-commandline from the source code (in the master branch) and the problem still exists.
What did you expect to see?
The migration runs successfully.
What did you see instead?
An error message: Incorrect syntax near 'GO'.
2018-06-28 13:46:10.105 ERROR : Migration V1_4__Initial_create_functions_and_procs_4.sql failed
The text was updated successfully, but these errors were encountered: