I know why the warning occurs.
On a varchar(20) column set to '0000-00-00 00:00:00' format in MySQL which a numeric comparison such as:
select * from table where varchar_date_column > 0;
is performed... Then I will have warnings that say:
Warning | 1292 | Truncated incorrect DOUBLE value: '2011-03-16 06:17:04' |
So my question is: Is there a reason NOT to do it this way? Because it works in the program anyways.