Bug #37785 | Order by works different for Memory storage engine | ||
---|---|---|---|
Submitted: | 1 Jul 2008 21:47 | Modified: | 2 Jul 2008 17:27 |
Reporter: | Hema Sridharan | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Memory storage engine | Severity: | S3 (Non-critical) |
Version: | mysql-6.0-backup, mysql-maria | OS: | Linux |
Assigned to: | Sveta Smirnova | CPU Architecture: | Any |
[1 Jul 2008 21:47]
Hema Sridharan
[1 Jul 2008 22:12]
Sveta Smirnova
Thank you for the report. Verified as described. Only team trees affected.
[2 Jul 2008 6:59]
Domas Mituzas
order is enforced only by ORDER BY/GROUP BY - different implicit order is not a bug
[2 Jul 2008 7:08]
Domas Mituzas
'reproduced' with InnoDB too :) mysql> create table o1 (a int primary key, b int) engine=MyISAM; Query OK, 0 rows affected (0.06 sec) mysql> insert into o1 values (3,1),(2,1),(1,1); Query OK, 3 rows affected (0.00 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select * from o1 order by b; +---+------+ | a | b | +---+------+ | 3 | 1 | | 2 | 1 | | 1 | 1 | +---+------+ 3 rows in set (0.00 sec) mysql> alter table o1 engine=InnoDB; Query OK, 3 rows affected (0.38 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select * from o1 order by b; +---+------+ | a | b | +---+------+ | 1 | 1 | | 2 | 1 | | 3 | 1 | +---+------+ 3 rows in set (0.00 sec)
[2 Jul 2008 10:53]
James Day
If only the team trees are affected it's possible that this is an unintended change in behavior.