You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
DECLARE
PROCEDURE ins (v_param varchar) is
begin
SELECT 1 FROM DUAL WHERE v_param = v_param;
end;
BEGIN
ins(' N');
COMMIT;
END;
/
When doing a migration Flyway throws the following error:
Failed to execute goal com.googlecode.flyway:flyway-maven-plugin:2.3:migrate (default-cli) on project flyway-project: com.googlecode.flyway.core.command.FlywaySqlScriptException: Error executing statement at line 1:
DECLARE
PROCEDURE ins (v_param varchar) is
begin
SELECT 1 FROM DUAL WHERE v_param = v_param;
end;
BEGIN
ins(' N');
COMMIT;
END;
/: ORA-06550: Line 10, Column 1:
PLS-00103: Encountered the symbol "/" The symbol "/" was ignored.
This is because it doesn't remove the trailing '/' when executing via jdbc. The magic line in this code is ins(' N');, any other string passes - it's just the sequence blank-upper_N-apostroph which provokes the wrong parsing.
Flyway 2.3
Oracle 11g (11.2.0)
ojdbc7-12.1.0.1
The text was updated successfully, but these errors were encountered:
Given the following script:
When doing a migration Flyway throws the following error:
This is because it doesn't remove the trailing '/' when executing via jdbc. The magic line in this code is ins(' N');, any other string passes - it's just the sequence blank-upper_N-apostroph which provokes the wrong parsing.
Flyway 2.3
Oracle 11g (11.2.0)
ojdbc7-12.1.0.1
The text was updated successfully, but these errors were encountered: