385
385
select year("0000-00-00"),year(d),year(dt),year(t),year(c) from t1;
386
386
ERROR HY000: Received an invalid datetime value '0000-00-00'.
387
387
select to_days("0000-00-00"),to_days(d),to_days(dt),to_days(c) from t1;
392
389
select extract(MONTH FROM "0000-00-00"),extract(MONTH FROM d),extract(MONTH FROM dt),extract(MONTH FROM t),extract(MONTH FROM c) from t1;
393
390
ERROR HY000: Received an invalid datetime value '0000-00-00'.