-
I want to create a trigger in a MySQL server using SQLx. However, I get this error:
I looked into SQLx source code and it seems that SQLx always creates a prepared statement for any query I execute. However, there are likely many valid statements, that cannot be made into prepared statements, like this one. Could we get an option to disable using prepared statements? I think that if a query has no parameters and Is there a simple way I can get around this for now? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you invoke the methods of |
Beta Was this translation helpful? Give feedback.
If you invoke the methods of
Executor
directly with a query string, it will not use prepared statements: https://docs.rs/sqlx/latest/sqlx/trait.Executor.html