Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SQL*Plus @ with file path fails to load correct file #2383
Which version and edition of Flyway are you using?
Flyway Pro Edition (trial) 5.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)
Which database are you using (type & version)?
Oracle RDS Instance Engine version: 22.214.171.124.ru-2019-01.rur-2019-01.r1
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 am using flyway pro with oracleSqlplus enabled. I created a folder structure to organize scripts based on objects. Trying to use @ (with path) in the flyway version scripts, which is not working.
What did you expect to see?
What did you see instead?
org.flywaydb.core.api.FlywayException: SP2-0310: unable to open file "topFolder/folderCommon/AScript.sql"
changed the title
Getting FlywayException: SP2-0310: unable to open file - when sqlpus @ is used with file path
May 21, 2019
Thank you very much for investigating and submitting the detailed report. We indeed incorrectly ignored the path. This has now been fixed.
This now also means that you now need to add a path where it was previously missing, but erroneously working such as in