I have a Mysql 5.5 and a table with a column as follow:
`VERSION_TS` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
but i'm having difficulties lately i'm getting this exception:
Incorrect datetime value: '1998-03-20' for column 'VERSION_TS' at row 1
when trying to enter values to the table, values of type Date, using mySql MakeDate().
Now, i can't change the function that return Date, but i can change the column to Date, but then i'll lose the default value. i've tried a couple of things, and then checked the web, and from what i understand in Mysql 5.5 there is no way to do it, but i could be wrong, so i came here to ask:
- Is there a way that i can change the column to a Date and still have a default value?
- Also, is there a better way to do approach the problem?