I'm trying to insert an incomplete date into a mysql table with a column of type date
called video_date
with the following query
UPDATE videos SET video_date = '1961-00-00' WHERE video_id = 6
However the date just gets set to 0000-00-00. When I try typing the above query into the SQL query window in PHPmyadmin it gives me the following error "Warning: #1265 Data truncated for column 'video_date' at row 1" and the date in the column remains as 0000-00-00.
I cant figure out what the problem is because according to these stackoverflow threads it should be possible to insert incomplete dates, such as '1961-00-00' or '1961-05-00':
Store incomplete date in MySQL date field
How to insert just year and month into date field?
Any ideas? Thanks!
EDIT added quotes around the date but the same problem persists.