Hello,
I'm trying to bind NULL for a nullable datetime column using a prepared statement as follows -
session.sql("UPDATE `table` SET `datetime` = ? WHERE `id` = 1").bind(NULL).execute();
This crashes.
Passing null as string gives the following error - "Invalid value for datetime column: 'null'"
How do I achieve this?
I'm trying to bind NULL for a nullable datetime column using a prepared statement as follows -
session.sql("UPDATE `table` SET `datetime` = ? WHERE `id` = 1").bind(NULL).execute();
This crashes.
Passing null as string gives the following error - "Invalid value for datetime column: 'null'"
How do I achieve this?