-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot insert NULL in BLOB column #80
Comments
For documentation: I test all datatypes listed here: https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.1.0/com.ibm.db2.luw.apdv.cli.doc/doc/r0000526.html Except (for obvious reasons):
And the result is, with this driver is not possible to insert NULL (Go
The error is the same: The only way to insert NULL in these types is not using a prepared statement. |
Hi @xhit So, If the user passes nil as a parameter value NULL should be inserted. When you are inserting NULL without prepared statement means are you passing NULL or nil? Thanks, |
Not for BLOB, VARBINARY and BINARY. PR #81 solve this.
Without prepared statement works like expected: insert into "issue80" ("blob_column") values (NULL); |
go env
Output:Steps to Reproduce:
Insert a nil in BLOB column. Code:
Error returned:
SQLRowCount: {HY010} [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=HY010
The text was updated successfully, but these errors were encountered: