-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
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:
EXEC sp_addarticle
EXEC sp_droparticle
EXEC sp_articlefilter
EXEC sp_addsubscription
EXEC sp_dropsubscription
[
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
]