Why does the following query in MySQL result in a null for that timestampdiff()?
SELECT EndDate, /* EndDate is YEAR(4) datatype with value 2013 */
year('2015-01-01') a,
timestampdiff( YEAR, Year('2015-01-01'), EndDate) b
FROM table
Results:
EndDate a b
2013 2015 NULL