1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/sql
Sergey Glukhov cf0cc723aa Bug#56862 Execution of a query that uses index merge returns a wrong result
In case of low memory sort buffer QUICK_INDEX_MERGE_SELECT creates
temporary file where is stores row ids which meet QUICK_SELECT ranges
except of clustered pk range, clustered range is processed separately.
In init_read_record we check if temporary file is used and choose
appropriate record access method. It does not take into account that
temporary file contains partial result in case of QUICK_INDEX_MERGE_SELECT
with clustered pk range.
The fix is always to use rr_quick if QUICK_INDEX_MERGE_SELECT
with clustered pk range is used.


mysql-test/suite/innodb/r/innodb_mysql.result:
  test case
mysql-test/suite/innodb/t/innodb_mysql.test:
  test case
mysql-test/suite/innodb_plugin/r/innodb_mysql.result:
  test case
mysql-test/suite/innodb_plugin/t/innodb_mysql.test:
  test case
sql/opt_range.h:
  added new method
sql/records.cc:
  The fix is always to use rr_quick if QUICK_INDEX_MERGE_SELECT
  with clustered pk range is used.
2010-11-23 13:18:47 +03:00
..
2010-03-17 19:15:41 +01:00
2010-10-01 13:39:49 +02:00
2010-07-09 15:00:33 +02:00
2010-09-09 16:48:06 +04:00
2010-06-08 10:28:30 +04:00
2010-08-13 14:18:46 +03:00
2010-03-29 18:42:49 +05:00
2010-11-09 12:45:13 -02:00
2010-11-09 12:45:13 -02:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2009-06-01 16:00:38 +04:00
2010-07-23 18:15:56 +07:00
2010-01-28 19:51:40 -02:00
2010-01-28 19:51:40 -02:00
2010-03-17 19:15:41 +01:00
2008-07-03 23:41:22 +04:00
2009-04-29 07:59:10 +05:00
2009-12-18 16:44:24 -02:00
2010-06-11 16:52:06 +04:00
2010-07-26 11:56:30 +02:00
2010-08-24 14:44:15 +04:00
2010-01-24 15:03:23 +08:00
2009-01-14 18:50:51 +04:00
2010-01-25 10:55:05 +08:00
2010-06-11 16:52:06 +04:00
2009-11-03 20:45:52 +03:00
2009-06-17 16:56:44 +02:00