SET sql_mode = 'NO_ZERO_DATE';
I put this in my table descriptions and it solved the problem of
'0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
On Sunday, March 11, 2012 2:19:33 PM UTC-7, Markus Unger wrote:
Hey!I have a Timestamp Field with a Null Value. But the JDBC say the following error message:Value '0000-00-00 00:00:00' can not be represented as java.sql.TimestampSeems that MySQL convert a null timestamp into '0000-00-00 00:00:00. Anybody prefered to set this flag zeroDateTimeBehavior=convertToNull But I found no way to set it in Cloud SQL. Is it possible to set this flag?Regards,Markus
No comments:
Post a Comment