Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

DB2 stored procedures with liquibase : mixing 2 delimiters in generated SQL

$
0
0
Hello everybody,

i'm quite new to liquibase so i wish your kindness.

I try using <sqlFile> changelog wto create stored procedures.

My problem is relating to delimiters.

The sql code of my SP uses ; as delimiter so to create the SP i use @ delimiter
<sqlFile path="MY_SP.sql"
            encoding="ISO-8859-1" endDelimiter="@" splitStatements="false" />

I need to generate SQL to send to DBadmins but it mixes
MY_SP.sql (with @ delimiter)

and

INSERT INTO DATABASECHANGELOG ... (with ; delimiter)

DROP PROCEDURE MY_SP()@

CREATE OR REPLACE PROCEDURE MY_SP()
...@
INSERT INTO ACATLS.DATABASECHANGELOG ... ;

The resulting SQL code is wrong because there is no alternate delimiter feature in DB2 (like in Oracle)

My question is :
is there a way to define another delimiter when liquibase generate the INSERT INTO DATABASECHANGELOG statements ?

Many thanks in advance

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>