Bug #26052 | MAX() is NOT returning NULL on an empty set | ||
---|---|---|---|
Submitted: | 3 Feb 2007 18:56 | Modified: | 9 Mar 2007 16:50 |
Reporter: | Emanuel Falkenauer | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: General | Severity: | S1 (Critical) |
Version: | 5.0.27-community-nt | OS: | Windows (XPP-SP2) |
Assigned to: | CPU Architecture: | Any |
[3 Feb 2007 18:56]
Emanuel Falkenauer
[4 Feb 2007 13:15]
Valeriy Kravchuk
Thank you for a problem report. Please, send your my.ini file content, for completeness. Can you repeat this behaviour with a single session?
[4 Feb 2007 14:00]
Emanuel Falkenauer
Hi, I added the my.ini file as requested. What do you mean by "Can you repeat this behaviour with a single session?" Thanks!
[6 Feb 2007 2:25]
Emanuel Falkenauer
Hello, Just being curious: were you able to reproduce the problem? Thanks!
[9 Mar 2007 16:50]
Valeriy Kravchuk
I was not able to repeat the behavioue described with latest 5.0.38-BK on Linux: openxs@suse:~/dbs/5.0> bin/mysql -uroot mysqltest Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.0.38 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show tables; +---------------------+ | Tables_in_mysqltest | +---------------------+ | tcf13 | | tcf14 | +---------------------+ 2 rows in set (0.00 sec) mysql> SELECT tcf42 FROM tcf13 WHERE tcf45=(SELECT tcf45 FROM tcf14 WHERE tcf53 =0x00); Empty set (0.00 sec) mysql> SELECT max(tcf42) FROM tcf13 WHERE tcf45=(SELECT tcf45 FROM tcf14 WHERE tcf53=0x00); +------------+ | max(tcf42) | +------------+ | NULL | +------------+ 1 row in set (0.00 sec) So, please, wait for 5.0.37 to be released officially (really soon), and check with it.