Skip to content
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

Empty line after "/" delimiter causes migration to fail #2530

Closed
alextercete opened this issue Oct 10, 2019 · 2 comments
Closed

Empty line after "/" delimiter causes migration to fail #2530

alextercete opened this issue Oct 10, 2019 · 2 comments

Comments

@alextercete
Copy link
Member

@alextercete alextercete commented Oct 10, 2019

Which version and edition of Flyway are you using?

6.0.6

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)

Java API

Which database are you using (type & version)?

Oracle 18.3

Which operating system are you using?

Windows

What did you do?

Ran migration (note the trailing newline after /):

DECLARE

  id INTEGER;

BEGINSELECT 1 INTO id FROM DUAL;

END;

/
What did you expect to see?

Migration succeeds.

What did you see instead?

Migration fails with:

SQL State  : 65000
Error Code : 6550
Message    : ORA-06550: line 6, column 1:
PLS-00103: Encountered the symbol "/" The symbol "/" was ignored.
@alextercete

This comment has been minimized.

Copy link
Member Author

@alextercete alextercete commented Oct 10, 2019

Upon further investigation, the issue only seems to happen when CRLF line-endings are used.

@alextercete

This comment has been minimized.

Copy link
Member Author

@alextercete alextercete commented Oct 10, 2019

This is a regression which was introduced in Flyway 6.0.2 by a16b14f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.