I try very lot options to run in room changeSet/sqlFile which contains pl/sql block and simlple sql statement. E.g.:
BEGIN
aud.someProcedure('parameter');
END;
/
insert into test_table(_id, value) VALUES(1, 'test');
But I get the following exception:
liquibase.exception.MigrationFailedException: Migration failed for change set [xml path]:
Reason: liquibase.exception.DatabaseException: ORA-06550: 4 line, 1 col:
PLS-00103: Encountered the symbol: "/"
[Failed SQL: BEGIN
aud.someProcedure('parameter');
END;
//
insert into test_table(_id, value) VALUES(1, 'test')
]
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:584)
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:51)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73)
at liquibase.Liquibase.update(Liquibase.java:210)
at liquibase.Liquibase.update(Liquibase.java:190)
at liquibase.Liquibase.update(Liquibase.java:186)
at org.jenkinsci.plugins.liquibase.builder.LiquibaseBuilder.perform(LiquibaseBuilder.java:128)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Caused by: liquibase.exception.DatabaseException: ORA-06550: 4 line, col oszlop:
PLS-00103: Encountered the symbol: "/"
[Failed SQL: BEGIN
aud.someProcedure('parameter');
END;
//
insert into test_table(_id, value) VALUES(1, 'test')
]
When I try to change in the xml the splitStatement and endDelimiter, nothing changed.
Do you have eny idea?