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.Dismiss alert
Using Liquibase version 4.14.0 and lower change script work perfect;
After install newer version (4.15.0 and later) update script raise exception;
In my opinion problem in a parsing sql file - same as described in #3356
In Microsoft SQL, in addition to the keyword BEGIN TRANSACTION, there are other constructs that start with the BEGIN keyword and do not need the END keyword. Supported construction marked in the list below:
@jccampanero - yes, please feel free to work on this issue and the related issue #3356. As @nvoxland is out on PTO for the next two weeks, please mention @filipelautert if you have questions or need guidance.
Thank you very much, I will try working on both issues. I will ask for help to @filipelautert if necessary.
I think it is clear in my mind: my only concern is trying to find a solution that could be applied not only to SQL Server but for any database system: I think it would be great if every database system could define its own rules (i.e. SQL Server has these kind of constructs, Oracle has others, etc). But I am not sure if I could find a proper solution without parsing the actual SQL grammars, just with text processing.
@tati-qalified - this issue looks similar to GH issue #3687 - parsing errors with scripts that contain double slashes - //. Could you test this at the same time as that ticket and let me know if this is fixed or still an issue?
Search first
Description
Using Liquibase version 4.14.0 and lower change script work perfect;
After install newer version (4.15.0 and later) update script raise exception;
In my opinion problem in a parsing sql file - same as described in #3356
In Microsoft SQL, in addition to the keyword
BEGIN TRANSACTION
, there are other constructs that start with theBEGIN
keyword and do not need theEND
keyword. Supported construction marked in the list below:BEGIN DIALOG CONVERSATION ...
;BEGIN CONVERSATION TIMER ...
;BEGIN DISTRIBUTED TRANSACTION
;BEGIN DISTRIBUTED TRAN
- only not to forget this variant;BEGIN TRANSACTION
BEGIN TRAN
- same asBEGIN TRANSACTION
Changes #1589 not fixed the above described variants witch start with
BEGIN
keyword and haven'tEND
.Code example:
Steps To Reproduce
script.sql
script.xml
Output
Expected/Desired Behavior
SQL must be separated to two simple procedures A and B
Liquibase Version
4.15.0
Database Vendor & Version
Microsoft SQL Server 15.00.2080
Liquibase Integration
CLI
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
Windows 10
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: