* Matt S Trout <[EMAIL PROTECTED]> [2007-06-14 19:50]:
> if mysql considers that equivalent to null
It does *and* does not:
mysql> create temporary table foo ( bar date not null );
Query OK, 0 rows affected (0.03 sec)
mysql> insert into foo values ('0000-00-00');
Query OK, 1 row affected (0.00 sec)
mysql> select count(*) from foo where bar is not null;
+----------+
| count(*) |
+----------+
| 1 |
+----------+
1 row in set (0.03 sec)
mysql> select count(*) from foo where bar is null;
+----------+
| count(*) |
+----------+
| 1 |
+----------+
1 row in set (0.00 sec)
Isn’t that bloody excellent?
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/