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

Handling MemSQL stored procedures using liquibase mvn plugin

$
0
0
I have a stored procedures for MemSQL which require the the usage of keyword 'DELIMITER' in my sql file. Code snippet is as below.  
  1. DELIMITER /

  2. CREATE OR REPLACE PROCEDURE PRE_CUSTOM_REFERENCE_LOAD(snapshot_date  DATE, table_name VARCHAR(100), batch_id INT) AS
  3. BEGIN
  4.       Do something;
  5. END /
  6. DELIMITER ;
the above one works fine when executed through memsql command line, however, i get the below error when run through liquibase mvn plugin.

  1. 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 /

  2. CREATE OR REPLACE PROCEDURE PRE_CUSTOM_REFERENCE_LOAD(snapshot_date' at line 1 [Failed SQL: -- Procedure to add source systems to a batch.
  3.      -- Procedure PRE_CUSTOM_REFERENCE_LOAD
  4. DELIMITER /
Any recommendations on how this can be fixed?

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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