-
Notifications
You must be signed in to change notification settings - Fork 47
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
split-sql-query breaks a trigger into multiple queries #298
Comments
Which db engine would you be using this with? |
So it looks like this is a possible issue or MySQL and SQLite. With MySQL they suggest adding an extra With SQLite I can't see any mention of the potential problem here: https://www.sqlite.org/lang_createtrigger.html For Postgres, there's not really an issue sine you only have one statement and so there are no extra I think there are 3 options here:
|
I think |
Do you have any updates on this issue? I'm encountering errors when executing queries that involve "complex" create triggers, specifically those that include IF... ENDIF or DELIMITER statements. I'm using MySQL. Do you have any workaround? Thanks |
Consider the following code:
Currently
split-sql-query
splits this into 4 queries:While it should only be two.
This was originally reported at platformatic/platformatic#932
The text was updated successfully, but these errors were encountered: