-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapped Oracle packages leave endDelimiter in compiled code with createProcedure change type #3536
Comments
Reproduced on liquibase |
Hi @tschf, Maybe I'm not understanding the issue here, with the steps and the data you shared in the description I can see there is something wrong with the package, but the first thing to mention here is I tried deploying manually against my Oracle DB the given package:
I removed the And when running the same query you try:
I got an error as well, but I think it's because the package body is corrupted: Could you please clarify if I'm performing a different step if you don't mind? Thanks, |
Hi @MalloD12 In the snippet above for the body - if you take out the semi-colon does it work? On reflection, I think that a mistake in my bug report including the semi-colon at the end of the reference source file. Ive tested with end delimiter as
And that works fine using SQLcl or SQL*Plus (command line interface).
|
Just getting up to speed on the latest version, I'm unsure if this is still an issue. Testing with XML
Seems working okay: Liquibase Version: 4.27.0
Liquibase Open Source 4.27.0 by Liquibase
Running Changeset: lb_demo.xml::spec::tschf
Running Changeset: lb_demo.xml::body::tschf
UPDATE SUMMARY
Run: 2
Previously run: 0
Filtered out: 0
-------------------------------
Total change sets: 2
Liquibase: Update has been successful. Rows affected: 2
Liquibase command 'update' was executed successfully.
(this is with a final forward slash in the source files). For good measure, also testing with yml as per OP, and that too seems working okay
Also thought I'll test
|
Environment
Liquibase Version: 4.17.2
Liquibase Integration & Version: CLI
Database Vendor & Version: Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Description
When installing a wrapped package using the change set type of
createProcedure
, end delimiter is not removed from the compiled code.Steps To Reproduce
Package spec:
Liquibased components for this test case:
source/plsql/lb_demo_wrapped.sql:
db/liquibase/lb_demo_wrapped.sql.yml
liquibase.properties:
Actual Behavior
Liquibase CLI output
Package after this operation
And cannot use my functional package until I recompile having removed the semicolon at the end
Work Arounds
;
)sqlFile
instead ofcreateProcedure
The text was updated successfully, but these errors were encountered: