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
More mssql sp calls cause non-tran statement error. #2542
Comments
I guess I was thinking about this module & block of code:
|
The parser ought to indicate which one is the problem in this case - are you able to share the full debug output from Flyway? (Or mail it to us?) |
I isolated them 1 by 1 in a new script and looks like: |
... however while figuring the above out, i have run into a yet different problem with non-tran operation containing scripts in Mixed mode. I will make a new entry for that. |
Thanks - our solution to #2546 will be rather more complete, but I can certainly add |
Fix for this example coming in 6.0.8; for the more complete solution #2546 we are aiming at 6.1. |
Which version and edition of Flyway are you using?
v6.0.7
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
command-line
Which database are you using (type & version)?
MSSQL 14.0.x
Which operating system are you using?
Win10 x64
What did you do?
Added a new Stored Proc that accesses MSSQL Replication routines.
What did you expect to see?
For Flyway to automatically detect special MSSQL keywords, and allow non-tran, for that given R script.
What did you see instead?
"ERROR: Detected both transactional and non-transactional statements within the same migration (even though mixed is false)."
its one , some or all of these that is causing this:
[
If i am not mistaken there already exists a regex/list inside the code (or at least there used to be) that does special handling of some keywords such as these.
See this prev item for ref, it might help in some way: https://github.com//issues/2175
]
The text was updated successfully, but these errors were encountered: