vrm, Tuesday, April 30, 2002, 4:51:29 PM, you wrote: v> How-To-Repeat: v> vrm@food:~$ mysql v> Welcome to the MySQL monitor. Commands end with ; or \g. v> Your MySQL connection id is 236 to server version: 3.23.47
v> Type 'help;' or '\h' for help. Type '\c' to clear the buffer. v> mysql> use bugtest v> Database changed v> mysql> create table bug (id int not null auto_increment primary key,d datetime not null); v> Query OK, 0 rows affected (0.00 sec) [skip] v> exit mysql and log in again: v> mysql> select id from bug where isnull(to_days(d)); v> +----+ v> | id | v> +----+ v> | 1 | v> | 2 | v> | 3 | v> +----+ v> 3 rows in set (0.00 sec) v> This is wrong, because the to_days() expression results in '0', not NULL. v> mysql> select id from bug where isnull(to_days(d)); v> Empty set (0.00 sec) v> This is OK. v> All further execution of this query results in the latter, correct results _in this connection_. v> Whenever you reconnect the first query results in the demonstrated bad result. v> In version 3.23.49 this is reproducible, but you have to restart mysqld instead of simply reconnecting. It looks like a bug. We will investigate this in details. -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ 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 <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php