summaryrefslogtreecommitdiff
path: root/mysql-test/r/group_by_innodb.result
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-11162 Assertion `num_records == m_idx_array.size()' failed in ↵Varun Gupta2016-12-081-0/+3
| | | | | | Filesort_buffer::alloc_sort_buffer(uint, uint) Updating result for the group_by_innodb.test
* MDEV-11162 Assertion `num_records == m_idx_array.size()' failed in ↵Varun Gupta2016-12-081-0/+7
| | | | | | | | | | | | | Filesort_buffer::alloc_sort_buffer(uint, uint) When JOIN::destroy() is called for a JOIN object that has - join->tmp_join != NULL - also has join->table[0]->sort then the latter was not cleaned up. This could cause a memory leak and/or asserts in the subsequent queries. Fixed by adding a cleanup call.
* Added testcase for MDEV-7193: Incorrect Query Result (MySQL Bug 68897) ...Sergei Petrunia2015-02-171-0/+44
|
* MDEV-5719: Wrong result with GROUP BY and LEFT OUTER JOINmariadb-10.0.16Sergey Petrunya2015-01-251-0/+23
| | | | | | | | | | | Merged revision 5224 from mysql-5.6 and added a test case. .. revno: 5224 committer: Sergey Glukhov <sergey.glukhov@oracle.com> branch nick: mysql-5.6 timestamp: Wed 2013-06-19 14:24:08 +0400 message: Bug#16620047 INCORRECT QUERY RESULT (AFTER SERVER UPGRADE)
* move innodb specific test from group_by.test to group_by_innodb.testSergei Golubchik2014-01-261-1/+27
|
* Fixed MDEV-5424: SELECT using ORDER BY DESC and LIMIT produces unexpected ↵Michael Widenius2014-01-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | results (InnoDB/XtraDB) This only happend when using an ORDER BY on a primary key part, where all other key parts where constant. Remove of duplicated expressions in ORDER BY (as the old code did this in some strange cases) mysql-test/r/group_by.result: Fixed results to take into account that duplicate order by parts are now deleted mysql-test/r/group_by_innodb.result: Ensure extended keys are on mysql-test/r/innodb_ext_key.result: More tests mysql-test/r/order_by.result: More tests mysql-test/t/group_by.test: Fixed results to take into account that duplicate order by parts are now deleted mysql-test/t/group_by_innodb.test: Ensure extended keys are on mysql-test/t/innodb_ext_key.test: More tests mysql-test/t/order_by.test: More tests sql/sql_select.cc: Fixed bug where we looked at extended key parts when we shouldn't Remove of duplicated expressions in ORDER BY sql/table.cc: Indentation fixes
* Fix for bug MDEV-3992unknown2013-01-141-0/+30
Analysis: The crash is a result of incorrect analysis of whether a secondary key can be extended with a primary in order to compute ORDER BY. The analysis is done in test_if_order_by_key(). This function doesn't take into account that the primary key may in fact index the same columns as the secondary key. For the test query test_if_order_by_key says that there is an extended key with total 2 keyparts. At the same time, the condition if (pkinfo->key_part[i].field->key_start.is_set(nr)) in test_if_cheaper_oredring() becomes true for (i == 0), which results in an invalid access to rec_per_key[-1]. Solution: The best solution would be to reuse KEY::ext_key_parts that is already computed by open_binary_frm(), however after detailed analysis the conclusion is that the change would be too intrusive for a GA release. The solution for 5.5 is to add a guard for the case when the 0-th key part is considered, and to assume that all keys will be scanned in this case.