On Wednesday 05 February 2003 02:07, aah at volunteermatch dot org wrote:
> >Description:
>
> Multiple IS NULL tests in a WHERE clause appear to be broken
> when testing NOT NULL date fields. Queries work fine against
> varchar and int, probably(?) others.
>
> >How-To-Repeat:
>
> create temporary table test (a date not null, b date not null);
> insert into test values (now(), now());
> insert into test values (now(), now());
> select count(*) from test where a is null or b is null;
>
> The SELECT query should return 0, instead it returns every row
> in the table (2 in this case). For what it's worth, the
> query returns the right number for int and varchar fields, and
> returns the right number if the columns allow null values.
Thanks for bug report! It's fixed.
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ suppressed
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <suppressed>
To unsubscribe, e-mail <suppressed>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.