Hi to all,
I tried using TIMESTAMP columns on my MySQL tables and having read MySQL's
documentation regarding about the DATE data types, especially on TIMESTAMP's,
that its max value is only up to 2037 (maybe for now).
I tried changing my PC's date to the year '2038' and above, and begin
inserting records in a table with TIMESTAMP columns, which have
CURRENT_TIMESTAMP as its default value, and noticed that instead of inserting the current TIMESTAMP, it inserted the value '2000-01-00'.
I tried running a SELECT query to view those records in MySQL's Query Browser
(current date of PC is still greater than 2037) and it did return records and
then disappeared, like it just "flashed" in the grid. I tried running the
query again in the MySQL console, and that is where I saw the '2000-01-00'
value.
I have not yet checked MySQL's site for this issue and have not checked the
new version of MySQL.
By the way I am using version 5.0.27-community-nt.
What will happen if you have an application that can reach the year 2037? I
am currently implementing TIMESTAMPS on my applications that uses MySQL as
backend...I wonder how can this be resolved?
Thanks and god bless.