Replies: 4 comments
-
Did you ever figure this out? |
Beta Was this translation helpful? Give feedback.
-
Its been a while since i worked with MySql but i remember something about MySql disallowing multiple statements by default. So this is something you need to possibly enable explicitly with config options. Assuming Sqlx supports it |
Beta Was this translation helpful? Give feedback.
-
I've browsed through sqlx's MySql driver a bit and it enables the multi-statements when configuring the connection by default. |
Beta Was this translation helpful? Give feedback.
-
@kyku Had you solved this? |
Beta Was this translation helpful? Give feedback.
-
In my sample program I'm trying to do the following:
But MySql complains with
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UPDATE
error. So the question is how one is supposed to pass multiple queries so that they are properly recognized.Beta Was this translation helpful? Give feedback.
All reactions