Closed ApertureDevelopment closed 2 years ago
The reason this does not work is because DELIMITED is not an SQL command but rather a keyword that the mysql CLI uses to split queries into single statements. Try creating the procedure without the DELIMITER command and it should work.
Alright, this issue was on me. I thought I needed to set the delimited to something else to not get issues with the semicolons. But yeah, One only needs to do that for the MySQL client
I don't know why this is happening, but since my SQL syntax works as intended with the mysql client and MySQL workbench, I assume that this is a problem caused by mysqloo.
Basically I am unable to create procedures because I am getting SQL syntax errors. But the thing is, it works just as intended when running directly using the mysql client or mysql workbench. This is certainly a issue when trying to avoid issues such as auto_increment gaps
This is the query I am trying to run:
I am running it as
It seems that running any query containing the
DELIMITED
paramater will cause this issue, but not when being executed on the server directly