1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-01 08:45:04 +03:00
Sergei Golubchik d53eb85997 MDEV-12580 Wrong query result in join when using an index (Version > "10.2.3")
JOIN_TAB::remove_redundant_bnl_scan_conds() removes select_cond
from a JOIN_TAB if join cache is enabled, and tab->cache_select->cond
is the equal to tab->select_cond.

But after 8d99166c69 the code to initialize join cache was moved
to happen much later than JOIN_TAB::remove_redundant_bnl_scan_conds(),
and that code might, under certain conditions, revert to *not* using
join cache (set_join_cache_denial()).

If JOIN_TAB::remove_redundant_bnl_scan_conds() removes the WHERE
condition from the JOIN_TAB and later set_join_cache_denial() disables
join cache, we end up with no WHERE condition at all.

Fix: move JOIN_TAB::remove_redundant_bnl_scan_conds() to happen
after all possible set_join_cache_denial() calls.
2017-05-08 11:08:18 +02:00
..
2015-06-02 22:07:47 +02:00
2017-03-30 12:48:42 +02:00
2015-05-04 22:00:24 +02:00
2017-02-10 06:30:42 -05:00
2016-05-04 15:23:26 +02:00
2017-04-28 21:59:11 -07:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-09-06 12:50:02 +04:00
2016-06-30 16:38:05 +02:00
2017-02-10 17:01:45 +01:00
2017-02-10 17:01:45 +01:00
2017-02-10 17:01:45 +01:00
2017-02-21 20:31:06 +01:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2016-06-28 22:01:55 +02:00
2016-05-04 15:23:26 +02:00
2017-02-10 06:30:42 -05:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2015-10-12 00:37:58 +02:00
2016-09-09 08:33:08 +02:00
2017-03-30 12:48:42 +02:00
2017-03-30 12:48:42 +02:00
2017-02-10 06:30:42 -05:00
2016-09-15 15:31:28 +02:00
2017-02-24 09:40:53 -08:00
2016-06-21 14:11:02 +02:00
2015-05-04 22:00:24 +02:00
2017-02-10 06:30:42 -05:00
2016-09-10 16:04:44 +02:00
2016-12-29 13:23:18 +01:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2017-02-10 06:30:42 -05:00
2016-08-10 19:19:05 +02:00
2017-05-06 14:36:46 +03:00
2017-02-10 06:30:42 -05:00
2017-03-30 12:48:42 +02:00
2016-07-13 12:09:59 +02:00
2017-03-30 12:48:42 +02:00
2015-06-16 23:55:56 +02:00
2017-04-03 15:59:38 -07:00
2017-02-10 06:30:42 -05:00
2016-12-11 09:53:42 +01:00
2017-02-10 06:30:42 -05:00
2015-11-19 15:52:14 +01:00
2017-03-30 12:48:42 +02:00
2017-03-21 19:20:44 +01:00
2017-03-08 14:40:02 +02:00
2017-04-24 14:57:26 -07:00
2017-03-09 08:53:08 +02:00
2016-06-30 11:43:02 +02:00
2017-02-10 17:01:45 +01:00
2015-11-18 22:03:02 +01:00
2016-09-24 15:12:34 +02:00
2017-05-03 13:50:35 -07:00
2016-02-23 21:35:05 +01:00
2017-02-10 06:30:42 -05:00