You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently added (in #26) executeMany_ function allows to perform multiple statements, which is great! Unfortunately, it fails when I'm trying to use this function to create procedure in MySQL.
I see the following error:
ERRException (ERR {errCode =1064, errState ="42000", errMsg ="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 //\nCREATE PROCEDURE simpleproc (OUT param1 INT)\nBEGIN\n SELECT COUNT' at line 1"})
However, if I execute my query from MySQL REPL, everything works great 👍
Note that the DELIMITER keyword is a function of the command line mysql client (and some other clients) only and not a regular MySQL language feature. It won't work if you tried to pass it through a programming language API to MySQL
So my question is, can this procedure be added without changing DELIMITER?
Recently added (in #26)
executeMany_
function allows to perform multiple statements, which is great! Unfortunately, it fails when I'm trying to use this function to create procedure in MySQL.I see the following error:
However, if I execute my query from MySQL REPL, everything works great 👍
I'm following this guide:
As I understand, the problem is in
DELIMITER
command. I wonder, whether it's possible to somehow support this workflow inmysql-haskell
library? 🤔And here is complete code:
The text was updated successfully, but these errors were encountered: