-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Executing many-values or multi-row insert statements with NULL values fails #209
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
Comments
Reminder for us: related to #201? |
No, I don't think so. I think #201 is a more general error related to the absolute buffer size Am 24.01.2014 17:26 schrieb Arne Hormann:
Falko Feßer Tel: +49 (0)30 - 223 200 -10 E-mail: [email protected] Amtsgericht Charlottenburg HRB 130730 B Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte This e-mail may contain confidential and/or privileged information. in this e-mail is strictly forbidden. |
Closing this, further comments in #210 please. |
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
Inserting rows with more than 32 values fails if there are NULL values beyond this limit.
You can reproduce the error using a very wide table (>32 fields) and insert a NULL row or similar:
Execute it with parameters like:
The same happens on small tables with a multi-row insert
with more than 32 values and latter NULL/nil values.
The SQL server answers with
I assume that there is a bug in packets.go stmt.writeExecutePacket function: The nullMask variable should be an array of byte or uint to support more than 32 fields (bits), right?
The text was updated successfully, but these errors were encountered: