# Escape changeset property during update command

**URL:** <https://forum.liquibase.org/t/escape-changeset-property-during-update-command/5225>\
**Category:** General Discussion\
**Created:** [March 22, 2021, 9:56pm UTC](https://forum.liquibase.org/t/escape-changeset-property-during-update-command/5225 "2021-03-22T21:56:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bioskain](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bioskain](https://forum.liquibase.org/u/bioskain)\
**Post date:** [March 22, 2021, 9:56pm UTC](https://forum.liquibase.org/t/escape-changeset-property-during-update-command/5225/1 "2021-03-22T21:56:51Z")

</div>

Hi all,

I would like to apply a changeset that contains a template message, e.g.

INSERT INTO MY\_TABLE (MESSAGE) VALUES(’‘Hello ${user.name}’)

I would like to resolve user.name variable using the web application but, unfortunately, this variable is resolved by liquibase during migration.

I saw in the liquibase source code that there is a variable that should do the trick

liquibase.parser.ChangeLogParserCofiguration#ChangeLogParserCofiguration

supportPropertyEscaping (alias enableEscaping), using it and escaping like ${:user.name} should works.

liquibase.changelog.ChangeLogParameters.ExpressionExpander#expandExpressions

I tried to configure the supportPropertyEscaping property using liquibase.properties file and using the -D approach, but nothing happens. I didn’t found any resource on internet.

Do you have any suggestions?

I run the tool using the CLI

Thank you

Felice

---

<div class="post-metadata">

**Author:** ![bioskain](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bioskain](https://forum.liquibase.org/u/bioskain)\
**Post date:** [March 23, 2021, 7:48am UTC](https://forum.liquibase.org/t/escape-changeset-property-during-update-command/5225/2 "2021-03-23T07:48:53Z")

</div>

I forgot to mention that changelog are written in xml files and that sql is written inside the sql element.

---

<div class="post-metadata">

**Author:** ![bioskain](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bioskain](https://forum.liquibase.org/u/bioskain)\
**Post date:** [March 23, 2021, 10:38am UTC](https://forum.liquibase.org/t/escape-changeset-property-during-update-command/5225/3 "2021-03-23T10:38:49Z")

</div>

Ok I found a solution.

In order to override the configuration I can define/override JAVA\_OPTS env variable.  
export JAVA\_OPTS="$JAVA\_OPTS -Dliquibase.enableEscaping=true"

I’m wondering if there are other ways to do the same with the CLI.
