Which version and edition of Flyway are you using?
Flyway from github, branch master.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Oracle EE 12.2.0.1
Which operating system are you using?
Linuxs
What did you do?
deploy migration with below code:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED hw
AUTHID CURRENT_USER AS
public class welcome {
public static String welcome() {
if (false) {
return "Welcome World";
} else {
return "Welcome simple world";
}
}
}
/
This plsql code compiles until Java comments are met
For example:
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED hw
AUTHID CURRENT_USER AS
public class welcome {
// if insert comment here <<<---
public static String welcome() {
// or here <<<---
if (false) {
return "Welcome World";
} else {
return "Welcome simple world";
}
}
}
/
return
ERROR: Unable to parse statement in ... at line 4 col 4: Incomplete statement at line 4 col 4: this is comment
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED hw
AUTHID CURRENT_USER AS
public class welcome {
public static String welcome() {
if (false) {
// if insert commen here <<<---
return "Welcome World";
} else {
return "Welcome simple world";
}
}
}
/
return
ORA-29536
CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED hw
AUTHID CURRENT_USER AS
public class welcome {
// this comment <<<---
public static String welcome() {
// and this comment <<<---
if (false) {
// and this comment <<<---
return "Welcome World";
} else {
return "Welcome simple world";
}
}
}
/
This plsql code compiles
What did you expect to see?
migration is deployed
What did you see instead?
ERROR: Unable to parse statement in ... at line 4 col 4: Incomplete statement at line 4 col 4: this is comment
and
ORA-29536
The text was updated successfully, but these errors were encountered:
The comment, when not indented is being mistakenly picked up as a PL/SQL delimiter (when indented it works fine, as you have seen). I'll push out a fix (asap to the repo, and in v6.1.4) which tracks braces in Java code to spot this case/
Which version and edition of Flyway are you using?
Flyway from github, branch master.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Oracle EE 12.2.0.1
Which operating system are you using?
Linuxs
What did you do?
deploy migration with below code:
This plsql code compiles until Java comments are met
For example:
return
ERROR: Unable to parse statement in ... at line 4 col 4: Incomplete statement at line 4 col 4: this is comment
return
ORA-29536
This plsql code compiles
What did you expect to see?
migration is deployed
What did you see instead?
ERROR: Unable to parse statement in ... at line 4 col 4: Incomplete statement at line 4 col 4: this is comment
and
ORA-29536
The text was updated successfully, but these errors were encountered: