Skip to content
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

Fix (MSSQL): end delimiter logic broken by BEGIN DIALOG/BEGIN CONVERSATION #5756

Merged
merged 13 commits into from
May 8, 2024

Conversation

MalloD12
Copy link
Contributor

@MalloD12 MalloD12 commented Apr 2, 2024

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

There were some endDelimiter blocks failing because of a few different not-recognized tokens which can come after a BEGIN, and that was causing some to be broken and syntax errors to pop up.

Fixes #4268

Things to be aware of

Things to worry about

Additional Context

- Renamed Mssql groovy integration test class.
- Added integration test with a few begin block scenarios.
- SQL file path fixed.
@filipelautert filipelautert changed the title Fix #4268 Fix end delimiter logic broken by BEGIN DIALOG/BEGIN CONVERSATION Apr 22, 2024
Copy link

FOSSA Snippets Detection 🤖success

Snippets Detection Output

Running FOSSA snippets
 INFO main{target=/home/runner/work/liquibase/liquibase/}: Analyzing local snippet matches
 INFO main{target=/home/runner/work/liquibase/liquibase/}: Finished matching 0 snippets out of 4438 files to 0 matches


Pusher: @rberezen, Action: pull_request, Working Directory: /home/runner/work/liquibase/liquibase, Workflow: FOSSA AI License Compliance and Security Check

Copy link

FOSSA Test 🧪success

Test Output


Using project name: `https://github.com/liquibase/liquibase`
Using revision: `6f17ae75a20a34cc887d3accb516865fbe2e11f6`

[ Checking build completion for 6f17ae75a20a34cc887d3accb516865fbe2e11f6... ]
[ Waiting for build completion (revision 6f17ae75a20a34cc887d3accb516865fbe2e11f6)... last status: StatusCreated ]
[ Waiting for build completion (revision 6f17ae75a20a34cc887d3accb516865fbe2e11f6)... last status: StatusRunning ]
[ Waiting for issue scan completion... ]


[ERROR] 

  ========================================================================
  Tested Following Project:
  ========================================================================


  Project Title: https://github.com/liquibase/liquibase
  Project Revision: 6f17ae75a20a34cc887d3accb516865fbe2e11f6
  Project Visibility: private
  Project Targets:
  - maven: [pom.xml]


  COMPLIANCE ISSUES (Total 28)

  ========================================================================
  Unlicensed Dependency (Total 2)
  ========================================================================
  ⚑ Unlicensed dependency detected in aopalliance:aopalliance@1.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934914

  ⚑ Unlicensed dependency detected in com.ibm.db2:jcc@11.5.9.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4319140


  ========================================================================
  Flagged by Policy (Total 26)
  ========================================================================
  ⚑ LGPL-3.0-only license detected in com.github.javaparser:javaparser-core@3.25.9
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5053794

  ⚑ LGPL-3.0-or-later license detected in com.github.javaparser:javaparser-core@3.25.9
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5053793

  ⚑ LGPL-3.0-or-later license detected in com.h2database:h2@2.2.224
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4850918

  ⚑ GPL-2.0-with-classpath-exception license detected in com.sun.istack:istack-commons-runtime@4.1.2
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934920

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.activation:jakarta.activation-api@2.1.3
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173516

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.annotation:jakarta.annotation-api@2.1.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934922

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.el:jakarta.el-api@5.0.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934924

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.enterprise:jakarta.enterprise.cdi-api@4.0.1
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934916

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.enterprise:jakarta.enterprise.lang-model@4.0.1
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934919

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.interceptor:jakarta.interceptor-api@2.1.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934928

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.servlet:jakarta.servlet-api@5.0.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934931

  ⚑ GPL-2.0-with-classpath-exception license detected in jakarta.xml.bind:jakarta.xml.bind-api@4.0.2
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173517

  ⚑ GPL-2.0-only license detected in javax.activation:javax.activation-api@1.2.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4414991

  ⚑ GPL-2.0-with-classpath-exception license detected in javax.activation:javax.activation-api@1.2.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4414990

  ⚑ GPL-2.0-with-classpath-exception license detected in javax.servlet:javax.servlet-api@3.1.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934935

  ⚑ GPL-2.0-only license detected in javax.xml.bind:jaxb-api@2.3.1
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4414993

  ⚑ GPL-2.0-with-classpath-exception license detected in javax.xml.bind:jaxb-api@2.3.1
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4414992

  ⚑ LGPL-2.1-or-later license detected in net.java.dev.jna:jna@5.13.0
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/4934934

  ⚑ GPL-2.0-with-classpath-exception license detected in org.eclipse.angus:angus-activation@2.0.2
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173515

  ⚑ LGPL-2.1-only license detected in org.firebirdsql.jdbc:jaybird@5.0.4.java8
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173521

  ⚑ LGPL-3.0-only license detected in org.firebirdsql.jdbc:jaybird@5.0.4.java8
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173520

  ⚑ GPL-2.0-with-classpath-exception license detected in org.glassfish.jaxb:jaxb-core@4.0.5
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173518

  ⚑ GPL-2.0-with-classpath-exception license detected in org.glassfish.jaxb:jaxb-runtime@4.0.5
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173519

  ⚑ GPL-2.0-with-classpath-exception license detected in org.glassfish.jaxb:txw2@4.0.5
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/5173522

  ⚑ GPL-2.0-or-later license detected in org.yaml:snakeyaml@2.2
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/3779967

  ⚑ LGPL-2.1-or-later license detected in org.yaml:snakeyaml@2.2
  More information: https://app.fossa.com/projects/custom%2B40163%2Fgithub.com%2Fliquibase%2Fliquibase/refs/branch/master/6f17ae75a20a34cc887d3accb516865fbe2e11f6/issues/licensing/3779966


[ERROR] An issue occurred

  *** Relevant Errors ***

      �[0;91mError: �[0mThe scan has revealed issues. Number of issues found: 28




Pusher: @rberezen, Action: pull_request, Working Directory: /home/runner/work/liquibase/liquibase, Workflow: FOSSA AI License Compliance and Security Check

@filipelautert filipelautert changed the title Fix end delimiter logic broken by BEGIN DIALOG/BEGIN CONVERSATION Fix (MSSQL): end delimiter logic broken by BEGIN DIALOG/BEGIN CONVERSATION May 8, 2024
# Conflicts:
#	liquibase-integration-tests/src/test/groovy/liquibase/command/core/MssqlIntegrationTest.groovy
@filipelautert filipelautert merged commit 3c69dbb into master May 8, 2024
29 checks passed
@filipelautert filipelautert deleted the fix-issue-4268 branch May 8, 2024 16:25
@filipelautert filipelautert added this to the 1NEXT milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

End delimiter logic broken by BEGIN DIALOG/BEGIN CONVERSATION
3 participants