How do we get NULL into date columns w. prepared statements?
Posted: Sat Nov 13, 2010 9:36 pm
Hi all.
I can't figure out how to get NULLs into MySQL date columns using prepared statements. Neither an empty string nor "NULL" result in a null entry in the DB; the columns wind up with 00-00-00 dates. There's no default value set on the column in the DB, nulls are allowed, and other rows (test data added with plain SQL statements) do contain nulls for the dates.
Any ideas? Thanks!
I can't figure out how to get NULLs into MySQL date columns using prepared statements. Neither an empty string nor "NULL" result in a null entry in the DB; the columns wind up with 00-00-00 dates. There's no default value set on the column in the DB, nulls are allowed, and other rows (test data added with plain SQL statements) do contain nulls for the dates.
Any ideas? Thanks!