1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-24 14:48:09 +03:00
Files
mariadb/sql
Sergei Petrunia 15ef38d2ea MDEV-10228: Delete missing rows with OR conditions
Fix get_quick_keys(): When building range tree from a condition
in form

  keypart1=const AND (keypart2 < 0 OR keypart2>=0)

the SEL_ARG for keypart2 represents an interval (-inf, +inf).
However, the logic that sets UNIQUE_RANGE flag fails to recognize
this, and sets UNIQUE_RANGE flag if (keypart1, keypart2) covered
a unique key.
As a result, range access executor assumes the interval can have
at most one row and only reads the first row from it.
2016-07-27 00:38:51 +03:00
..
2011-10-19 21:45:18 +02:00
2015-04-12 21:40:07 +10:00
2012-01-13 15:50:02 +01:00
2011-11-24 18:48:58 +02:00
2012-10-18 23:33:06 +02:00
2011-10-19 21:45:18 +02:00
2014-01-06 10:52:35 +05:30
2013-09-06 22:31:30 +02:00
2014-03-16 21:03:01 +01:00
2014-03-16 13:59:44 +01:00
2014-03-16 13:59:44 +01:00
2012-01-13 15:50:02 +01:00
2012-01-13 15:50:02 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2014-02-17 11:00:51 +01:00
2014-03-16 13:59:44 +01:00
2011-11-03 19:17:05 +01:00
2011-11-27 17:46:20 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2012-01-13 15:50:02 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2014-03-15 18:24:15 +01:00
2014-03-16 13:59:44 +01:00
2014-03-15 18:24:15 +01:00
2013-07-16 19:09:54 +02:00
2012-01-13 15:50:02 +01:00
2013-03-27 10:03:28 +01:00
2012-01-13 15:50:02 +01:00
2014-03-16 21:03:01 +01:00
2012-01-13 15:50:02 +01:00
2014-03-16 13:59:44 +01:00
2014-03-16 13:59:44 +01:00
2016-06-14 13:55:28 +02:00
2014-02-17 11:00:51 +01:00
2014-02-17 11:00:51 +01:00
2011-11-03 19:17:05 +01:00
2011-11-03 19:17:05 +01:00
2014-01-06 10:52:35 +05:30
2011-11-03 19:17:05 +01:00
2014-03-16 21:03:01 +01:00
2016-06-14 13:55:28 +02:00
2014-12-19 11:35:44 +01:00
2016-06-14 13:55:28 +02:00
2016-06-14 13:55:28 +02:00
2015-06-02 22:07:47 +02:00
2015-06-02 22:07:47 +02:00
2014-03-15 18:24:15 +01:00
2014-10-29 13:22:48 +03:00
2012-01-13 15:50:02 +01:00
2014-03-16 21:03:01 +01:00
2016-04-20 15:25:55 +02:00
2014-03-16 21:03:01 +01:00
2012-02-21 20:51:56 +01:00
2013-12-02 15:17:21 +04:00
2012-05-04 07:16:38 +02:00
2012-05-04 07:16:38 +02:00
2014-03-15 18:24:15 +01:00
2014-03-16 13:59:44 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2011-11-22 18:04:38 +01:00
2012-08-24 15:29:01 +02:00
2014-03-16 13:59:44 +01:00
2014-03-16 13:59:44 +01:00
2012-03-28 01:04:46 +02:00
2014-03-15 18:24:15 +01:00
2012-03-28 01:04:46 +02:00
2012-03-17 01:26:58 -07:00
2014-03-16 21:03:01 +01:00
2014-02-17 11:00:51 +01:00
2014-02-17 11:00:51 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2011-11-03 19:17:05 +01:00
2014-03-15 18:24:15 +01:00
2014-08-02 21:26:16 +02:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2014-03-16 21:03:01 +01:00
2016-06-14 13:55:28 +02:00
2016-06-14 13:55:28 +02:00
2012-03-28 01:04:46 +02:00
2014-03-15 18:24:15 +01:00
2016-06-14 13:55:28 +02:00
2014-03-16 13:59:44 +01:00
2013-01-15 19:13:32 +01:00
2014-03-16 13:59:44 +01:00
2015-04-28 13:57:21 +02:00
2011-11-24 18:48:58 +02:00
2014-11-18 17:36:51 +01:00
2014-03-16 21:03:01 +01:00
2016-04-20 15:25:55 +02:00
2011-11-24 18:48:58 +02:00
2016-02-09 11:27:40 +01:00
2014-01-06 10:52:35 +05:30
2011-11-03 19:17:05 +01:00
2014-03-15 18:24:15 +01:00
2014-03-16 13:59:44 +01:00
2014-03-16 21:03:01 +01:00
2016-02-09 11:27:40 +01:00
2013-11-19 13:16:25 +01:00
2014-02-17 11:00:51 +01:00
2014-03-16 21:03:01 +01:00
2011-11-03 19:17:05 +01:00
2013-03-20 20:56:14 +01:00
2011-11-03 19:17:05 +01:00
2016-02-09 11:27:40 +01:00
2016-04-20 15:25:55 +02:00
2013-10-02 17:59:56 -07:00
2011-11-03 19:17:05 +01:00
2011-11-03 19:17:05 +01:00
2013-07-16 19:09:54 +02:00
2014-06-04 21:53:15 +04:00
2014-02-17 11:00:51 +01:00
2014-09-12 16:51:41 +02:00
2012-02-21 20:51:56 +01:00
2016-02-09 11:27:40 +01:00
2014-02-22 22:51:20 +01:00
2016-04-20 15:25:55 +02:00
2014-02-17 11:00:51 +01:00
2013-05-07 13:05:09 +02:00
2014-10-06 19:53:55 +02:00
2013-01-15 19:07:46 +01:00
2014-03-15 18:24:15 +01:00
2013-09-06 22:31:30 +02:00
2013-02-25 15:26:00 +01:00
2016-02-09 11:27:40 +01:00
2016-02-09 11:27:40 +01:00
2013-01-15 19:13:32 +01:00
2014-03-16 21:03:01 +01:00
2014-03-27 22:26:58 +01:00
2014-08-02 21:26:16 +02:00
2015-06-25 23:34:54 +03:00
2011-11-03 19:17:05 +01:00
2014-06-05 09:15:25 +04:00
2016-02-09 11:27:40 +01:00
2014-03-27 22:26:58 +01:00
2012-01-13 15:50:02 +01:00
2015-11-06 17:56:56 +01:00
2014-01-06 10:52:35 +05:30
2011-11-03 19:17:05 +01:00
2013-09-06 22:31:30 +02:00
2015-12-09 10:00:49 +01:00
2012-01-13 15:50:02 +01:00
2011-11-03 19:17:05 +01:00
2014-01-06 10:52:35 +05:30
2011-12-11 11:34:44 +02:00
2013-07-16 19:09:54 +02:00
2012-03-17 01:26:58 -07:00
2015-06-02 22:07:47 +02:00