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
Using '/' as delimiter on a new line #2701
Comments
Could you please provide an example script that flyway fails to execute? |
This statement failed. If I'm replacing the '/' by a ';', it's working as expected. |
I made a script containing only that line and it parsed fine. Is there maybe other stuff in the file that could be causing the actual failure? |
So on investigation the sql as written is invalid, as it has to end with a semicolon to be 'properly ended'. Im guessing that sql developer is adding the semicolons onto the end of statements without one before it executes the sql. |
I am not sure about Oracle SQL Developer adding semicolons. Link of the documentation: I also tried the following statement on Oracle SQL Developer: |
Here is another example. This script works fine in sqlplus and SQL developer against my Oracle 18c database. But it fails in flyway. create table temp_migr(c1 number) The flyway migrate output is: Flyway Community Edition 6.0.7 by Redgate
|
JFNGO commentedMar 2, 2020
Which version and edition of Flyway are you using?
6.2.4
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Oracle DB
Which operating system are you using?
Windows
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 tried to make some migrations using the '/' on a line alone as delimiter.
For example, just a "CREATE TABLE" statement, that works on Oracle SQL Developer but not using flyway command line
What did you expect to see?
I expected that the migration would be successful and the table would be created
What did you see instead?
The migration failed with an error "ORA-00922: missing or invalid option"
The text was updated successfully, but these errors were encountered: