question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi Line incompatibility between versions 3 and 4

See original GitHub issue

I am trying to migrate from version 3 to version 4 and hitting a difference in how multiline is handled - what used to be properly split into two statements in version 3 is no longer split into two statements in version 4

I was able to isolate the difference in behavior to different handling of

StringUtils.processMutliLineSQL(   "ALTER TABLE/\nCREATE INDEX/",   false, true, "/")

which seems to be caused by https://github.com/liquibase/liquibase/commit/0c7c94529cb98e42e13a993e405e35c191759979 commit - especially the new special handling of “/” in if ("/".equals(endDelimiter)) {

unfortunately that commit comment does not provide any details on the reason on the change, it looks like branch merge but I am unable to find corresponding change in 3.8 branch

Question: is there any documentation on the change to multiline handling? Any migration manual material to cover the change in multi line handling?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
abelomcommented, Mar 21, 2022

our tests pass with 4.9.0 thank you!

0reactions
dwielandcommented, Mar 20, 2022

I used the following quite minimal changeLog:

databaseChangeLog:
  - changeSet:
      id: 1
      author: dev
      changes:
        - sql:
            endDelimiter: "/"
            sql: |
              ALTER TABLE INS ADD (SUS VARCHAR2(100 CHAR), SSID VARCHAR2(100 CHAR) UNIQUE)/
              CREATE INDEX idx_sus
              ON ins(SUS)/

and tried different delimiters (;, / and GO) as well as different endDelimiter configurations. Except for the above case I never saw a different result from 3.10.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError compatibility and multi-line string aesthetics?
Will this work for both Python 2.7 and Python 3? Yes, string literal concatenation works the same way in Python 2 and Python...
Read more >
Allow multi-line function calls [#3301214] | Drupal.org
A nested call to a callable returning an object with chainable methods SHOULD be placed on the same line, using the regular coding...
Read more >
Worksheet compatibility issues - Microsoft Support
One or more charts in this workbook contain leader lines that are not supported in earlier versions. This functionality will be removed from...
Read more >
Compose file versions and upgrading - Docker Documentation
Looking for more detail on Docker and Compose compatibility? ... Version 3.x, designed to be cross-compatible between Compose and the Docker Engine's swarm ......
Read more >
Compatibility Guide for JDK 8 - Oracle
The following compatibility documents track incompatibility between adjacent Java versions. For example, this compatibility page reports only Java SE 8 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found