Skip to content

NULL value causes #2000 Unknown MySQL error #52

@dtjm

Description

@dtjm

I'm having a problem wherein I have an integer field defined but set to NULL, I get this error when calling Statement.Fetch() on the prepared statement:

    #2000 Unknown MySQL error%!(EXTRA string=
    )

If I go back and replace NULL with a value, I get no error.

This code reproduces it:
https://gist.github.com/1007214

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions