I'm wondering what will happen after 2038-01-19 03:14:07 with table fields using TIMESTAMP
as data type?
I always preferred DATETIME
but you apparently can't assign CURRENT_TIMESTAMP
as default value to that type. I mean, 28 years is not so long when you think about it (in my opinion anyway)... So what will happen to all those TIMESTAMP
fields then?
You may not be able to assign CURRENT_TIMESTAMP
to a DATETIME
column, but you can assign NOW()
to it.
As for the y2k+38 issue, I'm willing to bet there will be newer versions of MySQL that will address this long before it is a real concern.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With