I have a stored procedures for MemSQL which require the the usage of keyword 'DELIMITER' in my sql file. Code snippet is as below.
- DELIMITER /
- CREATE OR REPLACE PROCEDURE PRE_CUSTOM_REFERENCE_LOAD(snapshot_date DATE, table_name VARCHAR(100), batch_id INT) AS
- BEGIN
- Do something;
- END /
- DELIMITER ;
the above one works fine when executed through memsql command line, however, i get the below error when run through liquibase mvn plugin.
- SEVERE 11/11/19 11:55 AM: liquibase: C:/Git/evolv-reporting/schema-service/target/classes/changelog/olap-schema-master.xml: changelog/olap-stored-procedures.xml::olap-stored-procedure-5.4.2-1::evolv: Change Set changelog/olap-stored-procedures.xml::olap-stored-procedure-5.4.2-1::evolv failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER /
- CREATE OR REPLACE PROCEDURE PRE_CUSTOM_REFERENCE_LOAD(snapshot_date' at line 1 [Failed SQL: -- Procedure to add source systems to a batch.
- -- Procedure PRE_CUSTOM_REFERENCE_LOAD
- DELIMITER /
Any recommendations on how this can be fixed?