Uploaded image for project: 'Liquibase Core'
  1. CORE-3374

Add properties support for modifySQL "with" attribute

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 3.6.2
    • Fix versions: None
    • Environment:

      oracle db

    • Sprint:

      Description

      When using modifySQL to replace content of the generated SQL, the "with" value does not support properties.
      For Oracle, the existing scripts contain &1 values, which should be replaced with the current username.
      However, when adding

              <modifySql>
                  <!-- change "&1" to the current username -->
                  <replace replace="&amp;1" with="${username}" />
              </modifySql>
      

      the sql contains $

      {username}

      instead of the value of the username property.

        Attachments

          Activity

            People

            • Reporter:
              sphaverdings Simon Peter Haverdings
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: