Liquibase error [Postgresql]: unterminated dollar-quoted string at or near "$BODY$

前端 未结 3 1524
故里飘歌
故里飘歌 2021-01-17 10:20
Liquibase error: unterminated dollar-quoted string at or near "$BODY$`

Chaneg log xml has one entry: see below include file="/home/dev/...

相关标签:
3条回答
  • 2021-01-17 10:57

    Use <createProcedure> tag instead of <sql> in your <changeSet> definition

    0 讨论(0)
  • 2021-01-17 11:08

    I had the same error. Replacing the $function$ and $body$ with $$ solved the problem

    0 讨论(0)
  • 2021-01-17 11:12

    I just encountered the same issue days ago.

    It does not work if we add the changeset into changelog.xml file using the format below:
    <include file="path/to/sqlfile" />

    To work around, I use another format:

    <changeSet author="authour_name" id="your_id">
        <sqlFile path="path/to/sqlfile" splitStatements="false"/>
    </changeSet>
    

    Here is the link which gives a brief explanation to Problem with dollar-quoted-in-postgresql.

    0 讨论(0)
提交回复
热议问题