You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The field type is DateTime,the default value is null #1015
I use Java programming and set the field type as Date. When the type in DB is Nullable(DateTime) default NULL and the value is NULL, an error will be reported when the query comes out
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
Activity
zhicwu commentedon Jul 27, 2022
Hi @wdream, so the column is defined as
ts DateTime DEFAULT NULL? Could you share more information to help me reproduce the issue?wdream commentedon Jul 28, 2022
gmt_register Nullable(DateTime) default NULL
When you set it up like this, you get a problem
zhicwu commentedon Aug 2, 2022
I assume you're using latest driver but I was not able to reproduce the issue. Could you provide more details and maybe minimum code for reproducing?
wdream commentedon Aug 8, 2022
I use Java programming and set the field type as Date. When the type in DB is Nullable(DateTime) default NULL and the value is NULL, an error will be reported when the query comes out
github-actions commentedon Jan 8, 2025
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
chernser commentedon Nov 17, 2025
Not a subject for V2