-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] Statement with NULL column values fails with "Incorrect arguments to mysqld_stmt_execute" #125
Comments
I've attached a packet capture of the reproduction I made to help with debugging: sqlx_cap.zip It looks like something is going pretty wrong with the packet encoding when it attempts to encode the
The data after that is garbage in wireshark and it looks like its not properly encoding the length of the |
I believe I found the issue :) submitting a PR |
Thanks again for looking into this. Released as v0.2.6 |
My pleasure, thanks to you and the other contributors for providing a great crate :) happy to help |
This error appears to only happen on CI and not locally, despite everything running with the same version. I have no idea why this is the case. Since I removed the `nil` from the prepared statement, it is possible that this problem is related to launchbadge/sqlx#125, but I'm not sure. I also don't really know how to debug in github actions yet, so I don't know how to confirm if this is indeed the case.
This error appears to only happen on CI and not locally, despite everything running with the same version. I have no idea why this is the case. Since I removed the `nil` from the prepared statement, it is possible that this problem is related to the issues linked below, but I'm not sure. I also don't really know how to debug in github actions yet, so I don't know how to confirm if this is indeed the case. - go-sql-driver/mysql#209 - launchbadge/sqlx#125 - https://stackoverflow.com/questions/16726752/sending-null-in-a-prepared-statement-for-mysql-doesnt-seem-to-work?rq=1
This error appears to only happen on CI and not locally, despite everything running with the same version. I have no idea why this is the case. Since I removed the `nil` from the prepared statement, it is possible that this problem is related to the issues linked below, but I'm not sure. I also don't really know how to debug in github actions yet, so I don't know how to confirm if this is indeed the case. - go-sql-driver/mysql#209 - launchbadge/sqlx#125 - https://stackoverflow.com/questions/16726752/sending-null-in-a-prepared-statement-for-mysql-doesnt-seem-to-work?rq=1
Reproduction: https://github.com/repnop/sqlx_issue run with
docker-compose up
I attempted to change the
MAX_PACKET_SIZE
(here), but even at a value of 10000 I still received the same errorThe text was updated successfully, but these errors were encountered: