Bug #37905 | SELECT COUNT with GROUP BY bug (see #7128) | ||
---|---|---|---|
Submitted: | 6 Jul 2008 16:19 | Modified: | 7 Jul 2008 18:02 |
Reporter: | Axel Krysztofiak | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.51a | OS: | MacOS (part of XAMPP 0.7.2) |
Assigned to: | CPU Architecture: | Any | |
Tags: | count, GROUP BY |
[6 Jul 2008 16:19]
Axel Krysztofiak
[7 Jul 2008 11:27]
Sveta Smirnova
Thank you for the report. I get correct results with data from earlier bug report: CREATE TABLE `vote` ( `vote_id` int(11) NOT NULL auto_increment, `vote_day` int(11) default NULL, PRIMARY KEY (`vote_id`) ) TYPE=InnoDB ROW_FORMAT=FIXED COMMENT='InnoDB free'; Warnings: Warning 1287 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead insert into vote values(16,9); insert into vote values(17,16); insert into vote values(32,2); insert into vote values(33,16); insert into vote values(35,9); insert into vote values(37,11); insert into vote values(38,16); SELECT vote_day, count(*) as mycount FROM `vote` GROUP BY vote_day; vote_day mycount 2 1 9 2 11 1 16 3 Please provide dump of your table. Also please try with our binaries accessible from http://dev.mysql.com/downloads to check if this is MySQL or xampp bug.
[7 Jul 2008 11:37]
Axel Krysztofiak
can it be that this is a problem using older (non-intel) macs?
[7 Jul 2008 12:02]
Sveta Smirnova
Thank you for the feedback. > can it be that this is a problem using older (non-intel) macs? I can not say until I repeat it. Please in addtition to information requested in previous comment indicate which Mac do you have. And in any case I'd check with MySQL binaries first.
[7 Jul 2008 18:02]
Axel Krysztofiak
I downloaded the version 5.0.51b from mysql.com, and with this version I get the right values. It really seems to be a XAMPP problem. (?) Did they add a wrong version to their package? Hm... Whatever... Ok, then I'll use the XAPP package with an extra MySQL, because it seems to be the best way to let it work.