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

Re : slash / after plsql block in sql script included by sqlFile tag

$
0
0
The following works fine for me:

* only put one procedure into one SQL file.
* end the procedure definition with a / on a single line.

Then use the <sqlFile> tag to run the script and define the proper endDelimiter:

  1.     <sqlFile path="create_proc.sql"
                 relativeToChangelogFile="true"
                 stripComments="false"
                 splitStatements="true" endDelimiter="\n/" />    

Note the definition of the endDelimiter: a new line followed by a forward slash.

If you do want to keep multiple PL/SQL CREATE statements in a single file, then use

  1. endDelimiter="\n/\n"

together with splitStatements="true". I think that works fine as well. But I haven't used that for ages.





Viewing all articles
Browse latest Browse all 1169

Trending Articles