0000-00-00 00:00:00 to TIMESTAMP
Jan 27 2010
I read ColdFusion Bloggers every day to learn what is going on in the ColdFusion community. Today I came across a blog entry that solved an old problem with MySQL and the zero timestamp.
In MySQL, if a timestamp is blank, it is set to 0000-00-00 00:00:00 and this causes a problem for ColdFusion, which will return an error of: Cannot convert value '0000-00-00 00:00:00? from column X to TIMESTAMP. Thanks to John Sieber at Thoughts from the mountains we have the simple answer. IN the ColdFusion Administrator, go to Data Sources, edit the MySQL (4/5) data source, click on Show Advanced Settings and enter
in the Connection String dialog box.
This will make my job a little easier.
Thanks John.










#1 by John Sieber on 1/27/10 - 3:45 PM
#2 by Ben Nadel on 1/27/10 - 5:05 PM
#3 by Spills on 1/28/10 - 10:41 AM
Timestamp range is '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' AND
Date range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'
see: http://dev.mysql.com/doc/refman/5.0/en/datetime.ht...
#4 by Spills on 1/28/10 - 10:55 AM