-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bulk insert assumed that the placeholders will always be at the end #694
Comments
same |
Solved : Solution : #667 (comment) |
This is a regression since 18 Nov 2020 b63be72. Actually this issue is tracked in a lot of places: #505 (comment), #612 (comment), #690, #712, #705, #667 (comment), #657... |
This should work after #718 / v1.3.2, please reopen if you are still having issues. |
Wanted to manifest this issue's fix by https://github.com/Al2Klimov/sqlx/commit/a3897d3439c167a9e6f7b3cafb8e8e51d831dd36, but the tests fail:
@jmoiron TL;DR: it's still not fixed, but I seem not to have the permission to re-open this one. CC @lippserd |
Interesting. I noticed you changed the regex slightly, but not in a way which would cause issues for those tests. Looking more closely, it appears that MySQL overloads the A workaround would be to use the https://dev.mysql.com/doc/refman/8.0/en/insert-on-duplicate.html |
That’s exactly the point! We – @Icinga – can’t enforce our customers' MySQL versions as they usually stick to their Distro's package sources. |
Still not fixed, I have same problem with 1.3.3 version sqlx my example:
|
Current regex only accept placeholders at the end of the query:
This doesn't work with
INSERT .... ON DUPLICATE KEY UPDATE....
The text was updated successfully, but these errors were encountered: