-
Notifications
You must be signed in to change notification settings - Fork 145
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
MySQL - DriverError { Statement takes 4 parameters but 2 was supplied } #249
Comments
Thanks for report. I'll look into it. |
The purpose of conn.exec_batch(query, vec![params1, params2, params3, ..]); Turns out that the result of conn.exec_batch(query, params! { .. }); Thanks for report. I'll fix this. Regarding your code. Since there is only one set of parameters and the query result is ignored I suggest you use |
Okay thanks. That solved it. Is there a way to get the insert id? |
Found it.
Thx |
Instead of Vec<(String, Value)> (see blackbeam/rust-mysql-simple#249)
Instead of Vec<(String, Value)> (see blackbeam/rust-mysql-simple#249)
I've got the following piece of code which compiles:
I'm sure that
data.username
,data.email
,data.birthdate
,data.password
ain't empty. For some reason I get the following error at runtime;I guess this has something to do with the prepared statement failing. But I don't see how it could fail?
The text was updated successfully, but these errors were encountered: