In my one of the MySQL tables have one column cancelled_dts that is of type DateTime, which accepts null value and default set as "0000-00-00 00:00:00"
When I execute a query like this "SELECT * FROM tablename where cancelled_dts IS NULL" it's returning the rows which contain "0000-00-00 00:00:00"
I tried using the following query on the same database
select if('0000-00-00 00:00:00' != '0000-00-00 00:00:00', 'Not Same', 'Same'),
if('0000-00-00 00:00:00' IS NULL, 'NULL', 'NOT NULL'),
if('0000-00-00 00:00:00' IS NOT NULL, 'NOT NULL', 'NULL')
to check the behaviour and it gave output as "Same", "NOT NULL" and "NOT NULL" for the statements.