Bug #67752 | aggregate functions return NULL in GROUP BY within stored procedure cursor | ||
---|---|---|---|
Submitted: | 29 Nov 2012 8:16 | Modified: | 29 Nov 2012 17:13 |
Reporter: | Paul Lucassen | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.6.8rc | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | aggregate functions, cursor, stored procedure |
[29 Nov 2012 8:16]
Paul Lucassen
[29 Nov 2012 10:01]
Valeriy Kravchuk
Works as expected in 5.5.28: ... mysql> CALL test_group_by_in_cursor(); +------+------+------+------+ | id | max | min | sum | +------+------+------+------+ | 1 | 3 | 1 | 6 | | 2 | 3 | 1 | 6 | | 3 | 3 | 1 | 6 | +------+------+------+------+ 3 rows in set (0.41 sec) Query OK, 0 rows affected (0.46 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.5.28 | +-----------+ 1 row in set (0.04 sec) So this looks like a regression bug :)
[29 Nov 2012 16:53]
Valeriy Kravchuk
Indeed, this what I get on recent 5.5.8-rc built based on latest sources available on Launchpad: mysql> CALL test_group_by_in_cursor(); +------+------+------+------+ | id | max | min | sum | +------+------+------+------+ | 1 | NULL | NULL | NULL | | 2 | NULL | NULL | NULL | | 3 | NULL | NULL | NULL | +------+------+------+------+ 3 rows in set (1.31 sec) Query OK, 0 rows affected (1.31 sec) mysql> select version(); +-----------+ | version() | +-----------+ | 5.6.8-rc | +-----------+ 1 row in set (0.00 sec) So, regression bug? Anybody?
[29 Nov 2012 17:13]
Sveta Smirnova
Thank you for the report. This is duplicate of internal bug #14740889 which was fixed in version 5.6.10