Bug #43912 'Column * cannot be null' when derived table has count() with no results
| Submitted: | 27 Mar 2009 13:56 | Modified: | 16 Oct 2012 5:00 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
| Version: | 5.0.91 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[27 Mar 2009 13:56]
Shane Bester
[30 Dec 2009 23:05]
Konstantin Osipov
Setting the right lead.
[1 Aug 2010 11:32]
Shane Bester
only affects 5.0 now. this is fixed in 5.1.46 and 5.5.5... mysql> create table t5(id int not null); Query OK, 0 rows affected (0.00 sec) mysql> select * from (select id,count(id) as cnt from t5) as x; +----+-----+ | id | cnt | +----+-----+ | 0 | 0 | +----+-----+ 1 row in set (0.00 sec) mysql> select version(); +--------------------------------+ | version() | +--------------------------------+ | 5.1.46-enterprise-gpl-advanced | +--------------------------------+ 1 row in set (0.03 sec)
[16 Oct 2012 5:00]
Erlend Dahl
Not feasible to fix on 5.0.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.