Forum: Ruby on Rails activerecord update_attributes have a strange action with date

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
65960a95b30b430baa6c6c268f6961bb?d=identicon&s=25 wuz (Guest)
on 2008-11-29 12:18
(Received via mailing list)
I am using activerecord 2.1.0 and mysql,and with mysql 2.7 driver.
I have seen that when I use update_attributes,the date value have a
strange action.

Think we have a table Tests with
id int,
dt datetime

and when I use,
a[:dt] = "20081128"
test =

it ran ok,

but when I set the date value to "31000101"
the dt had been set to NULL.

anyone have same problem?
This topic is locked and can not be replied to.