unknown
1d721d0106
Fix MySQL BUG#12329653
...
In MariaDB, when running in ONLY_FULL_GROUP_BY mode,
the server produced in incorrect error message that there
is an aggregate function without GROUP BY, for artificially
created MIN/MAX functions during subquery MIN/MAX optimization.
The fix introduces a way to distinguish between artifially
created MIN/MAX functions as a result of a rewrite, and normal
ones present in the query. The test for ONLY_FULL_GROUP_BY violation
now tests in addition if a MIN/MAX function was part of a MIN/MAX
subquery rewrite.
In order to be able to distinguish these MIN/MAX functions, the
patch introduces an additional flag in Item_in_subselect::in_strategy -
SUBS_STRATEGY_CHOSEN. This flag is set when the optimizer makes its
final choice of a subuqery strategy. In order to make the choice
consistent, access to Item_in_subselect::in_strategy is provided
via new class methods.
******
Fix MySQL BUG#12329653
In MariaDB, when running in ONLY_FULL_GROUP_BY mode,
the server produced in incorrect error message that there
is an aggregate function without GROUP BY, for artificially
created MIN/MAX functions during subquery MIN/MAX optimization.
The fix introduces a way to distinguish between artifially
created MIN/MAX functions as a result of a rewrite, and normal
ones present in the query. The test for ONLY_FULL_GROUP_BY violation
now tests in addition if a MIN/MAX function was part of a MIN/MAX
subquery rewrite.
In order to be able to distinguish these MIN/MAX functions, the
patch introduces an additional flag in Item_in_subselect::in_strategy -
SUBS_STRATEGY_CHOSEN. This flag is set when the optimizer makes its
final choice of a subuqery strategy. In order to make the choice
consistent, access to Item_in_subselect::in_strategy is provided
via new class methods.
2011-11-12 11:29:12 +02:00
..
2011-04-28 19:56:10 +03:00
2010-09-15 15:48:15 +03:00
2010-05-24 21:54:08 +08:00
2011-04-14 12:11:57 +04:00
2010-10-18 13:33:05 -07:00
2011-01-20 19:08:12 +02:00
2011-01-04 14:36:37 +01:00
2011-05-21 00:46:18 +03:00
2010-05-28 00:07:40 +04:00
2010-04-22 15:52:00 +02:00
2011-09-07 20:39:47 +02:00
2011-11-03 12:59:48 +01:00
2011-02-28 19:39:30 +02:00
2011-01-14 19:50:34 +05:30
2011-08-29 18:14:14 +03:00
2011-01-28 12:09:15 +00:00
2011-10-05 18:18:00 +03:00
2010-10-18 13:33:05 -07:00
2011-02-28 19:39:30 +02:00
2010-05-24 21:54:08 +08:00
2011-07-08 18:46:47 +04:00
2011-01-25 12:14:28 +05:30
2011-01-20 19:08:12 +02:00
2011-07-08 18:46:47 +04:00
2011-05-10 18:17:43 +03:00
2011-02-17 12:43:53 +01:00
2011-02-17 12:43:53 +01:00
2011-02-17 12:43:53 +01:00
2010-11-18 11:53:08 +03:00
2011-01-17 15:11:33 +03:00
2011-03-03 18:39:26 +03:00
2011-05-02 20:58:45 +03:00
2010-11-11 13:25:23 +03:00
2010-12-10 23:23:34 -08:00
2011-06-09 17:23:39 +02:00
2011-02-22 19:28:50 +05:30
2011-02-22 19:28:50 +05:30
2010-08-31 02:16:38 +04:00
2011-07-21 15:55:08 -07:00
2011-11-02 13:48:41 +04:00
2011-07-21 14:23:08 -07:00
2011-06-10 10:14:20 +02:00
2010-09-03 19:20:30 +03:00
2011-06-07 18:13:02 +02:00
2010-06-24 15:21:23 +02:00
2011-05-19 19:16:17 +02:00
2011-03-01 13:24:36 +01:00
2011-05-03 19:10:10 +03:00
2010-05-19 11:18:59 +02:00
2011-11-02 13:48:41 +04:00
2011-10-06 23:40:19 +02:00
2011-10-06 23:40:19 +02:00
2011-10-06 23:40:19 +02:00
2010-05-24 21:54:08 +08:00
2011-04-28 18:02:26 +03:00
2011-09-30 18:55:02 -07:00
2011-02-03 17:00:28 +02:00
2010-06-26 14:05:41 +04:00
2011-03-01 13:24:36 +01:00
2011-03-03 15:04:04 +03:00
2011-07-12 23:47:35 -07:00
2010-10-18 13:33:05 -07:00
2011-09-10 18:01:27 +03:00
2011-06-09 17:23:39 +02:00
2011-10-13 13:44:50 +02:00
2010-06-08 10:22:40 +04:00
2011-01-17 12:30:22 +03:00
2011-05-21 00:46:18 +03:00
2010-11-25 00:57:34 +02:00
2011-06-09 17:23:39 +02:00
2011-07-21 14:23:08 -07:00
2011-03-01 13:24:36 +01:00
2011-06-07 18:13:02 +02:00
2011-09-01 14:23:03 +04:00
2011-06-06 20:28:15 +02:00
2010-04-28 14:52:24 +02:00
2011-05-10 18:17:43 +03:00
2010-10-18 21:03:53 +07:00
2011-05-18 16:27:19 +03:00
2011-05-18 16:27:19 +03:00
2011-05-03 19:10:10 +03:00
2010-10-18 13:33:05 -07:00
2011-11-02 13:48:41 +04:00
2011-11-02 13:48:41 +04:00
2011-04-19 14:34:40 +02:00
2011-07-20 21:55:55 -07:00
2010-11-23 12:35:37 +02:00
2010-11-23 12:35:37 +02:00
2011-05-11 13:59:17 +03:00
2011-07-08 18:46:47 +04:00
2011-07-21 14:23:08 -07:00
2011-09-03 17:05:05 +04:00
2010-09-11 20:43:48 +02:00
2010-11-29 18:51:46 -06:00
2011-07-21 14:23:08 -07:00
2010-12-19 18:07:28 +01:00
2011-10-22 07:19:43 -07:00
2011-11-11 14:53:26 -08:00
2010-06-10 11:11:52 +02:00
2011-07-08 18:46:47 +04:00
2011-11-06 01:23:03 -07:00
2010-05-28 00:07:40 +04:00
2011-10-28 04:07:11 -07:00
2011-10-28 04:07:11 -07:00
2011-02-16 21:43:12 +01:00
2010-10-19 15:58:35 +02:00
2011-11-06 01:23:03 -07:00
2011-09-30 18:55:02 -07:00
2011-09-30 18:55:02 -07:00
2011-10-05 18:18:00 +03:00
2011-10-05 18:18:00 +03:00
2011-09-07 20:39:47 +02:00
2011-07-08 18:46:47 +04:00
2010-10-18 13:33:05 -07:00
2011-02-03 17:00:28 +02:00
2011-09-23 01:13:38 +03:00
2011-05-28 05:11:32 +03:00
2010-05-26 13:18:18 -07:00
2011-01-10 23:22:40 +02:00
2011-03-29 10:09:05 +02:00
2011-06-06 16:39:06 +03:00
2011-05-28 05:11:32 +03:00
2011-05-19 19:19:44 +02:00
2010-09-06 02:15:34 +03:00
2011-05-28 05:11:32 +03:00
2010-10-27 16:31:22 -07:00
2011-04-04 16:04:15 +03:00
2010-10-19 12:27:09 +02:00
2010-06-25 15:59:44 +03:00
2011-11-11 14:53:26 -08:00
2011-11-06 01:23:03 -07:00
2010-11-02 17:22:57 +02:00
2011-07-08 18:46:47 +04:00
2011-06-15 21:48:38 -07:00
2011-07-08 18:46:47 +04:00
2011-11-06 01:23:03 -07:00
2011-06-15 21:48:38 -07:00
2011-11-11 14:53:26 -08:00
2011-11-06 01:23:03 -07:00
2011-09-30 18:55:02 -07:00
2010-07-30 09:17:10 -03:00
2010-09-06 02:15:34 +03:00
2011-10-26 20:25:18 +03:00
2011-01-16 02:04:08 +05:30
2011-01-12 19:32:45 +00:00
2011-01-13 13:28:36 +01:00
2011-05-10 18:17:43 +03:00
2011-01-29 18:51:12 +01:00
2010-12-19 18:07:28 +01:00
2011-05-03 14:01:11 +02:00
2011-08-10 13:08:19 +03:00
2010-06-03 10:31:26 +02:00
2010-06-03 10:31:26 +02:00
2011-05-02 20:58:45 +03:00
2011-05-18 15:17:26 +02:00
2011-02-12 17:44:01 +01:00
2011-07-21 15:50:25 +03:00
2011-02-04 10:47:46 +06:00
2010-09-05 13:52:33 +03:00
2011-07-08 18:46:47 +04:00
2011-07-08 18:46:47 +04:00
2011-07-01 15:08:30 +03:00
2010-06-14 01:13:32 +03:00
2011-11-02 13:48:41 +04:00
2011-09-30 18:55:02 -07:00
2010-05-07 00:41:37 +04:00
2011-03-25 12:57:27 +02:00
2011-06-06 20:28:15 +02:00
2011-03-01 13:24:36 +01:00
2010-11-24 18:51:31 +01:00
2011-06-24 21:43:31 +04:00
2010-05-11 16:49:23 +02:00
2010-08-27 10:43:51 +02:00
2010-10-05 14:57:51 +02:00
2010-12-08 14:34:08 +01:00
2010-10-15 20:13:35 +05:00
2010-07-08 14:36:55 +02:00
2011-09-30 18:55:02 -07:00
2010-08-27 10:43:51 +02:00
2011-06-15 16:02:32 +04:00
2011-06-21 17:40:51 +02:00
2010-06-16 19:01:22 +02:00
2010-12-01 13:54:50 +01:00
2011-05-21 00:46:18 +03:00
2010-10-18 13:33:05 -07:00
2011-07-08 18:46:47 +04:00
2011-07-22 23:47:28 -07:00
2011-07-22 23:47:28 -07:00
2011-07-22 23:47:28 -07:00
2011-07-22 23:47:28 -07:00
2011-02-03 17:00:28 +02:00
2011-08-15 23:18:36 -07:00
2011-07-21 14:23:08 -07:00
2011-06-07 18:13:02 +02:00
2011-11-06 01:23:03 -07:00
2011-08-05 22:01:49 +04:00
2011-07-08 18:46:47 +04:00
2011-09-30 18:55:02 -07:00
2010-05-21 22:47:32 +04:00
2010-12-10 23:23:34 -08:00
2010-06-26 19:36:00 +02:00
2011-02-28 17:27:41 -08:00
2011-11-06 01:23:03 -07:00
2011-09-30 18:55:02 -07:00
2011-09-30 18:55:02 -07:00
2011-09-30 18:55:02 -07:00
2011-05-10 18:17:43 +03:00
2011-05-02 20:58:45 +03:00
2010-06-01 21:52:20 +02:00
2010-05-24 21:54:08 +08:00
2010-11-11 10:52:51 +06:00
2011-05-02 20:58:45 +03:00
2011-07-01 15:08:30 +03:00
2011-05-28 05:11:32 +03:00
2011-07-04 14:51:16 +03:00
2011-03-11 16:16:34 +05:30
2010-10-18 13:33:05 -07:00
2010-10-18 13:33:05 -07:00
2011-07-01 10:20:11 +02:00
2011-06-27 19:07:24 +03:00
2011-05-28 05:11:32 +03:00
2011-09-30 18:55:02 -07:00
2011-10-05 18:18:00 +03:00
2011-10-05 18:18:00 +03:00
2011-11-02 13:48:41 +04:00
2011-11-01 17:42:52 +02:00
2011-11-07 16:39:02 +04:00
2011-11-02 13:48:41 +04:00
2011-09-28 17:20:43 +03:00
2011-10-05 18:18:00 +03:00
2011-11-06 01:23:03 -07:00
2011-10-05 18:18:00 +03:00
2011-11-12 11:29:12 +02:00
2011-11-12 11:29:12 +02:00
2011-11-12 11:29:12 +02:00
2011-11-12 11:29:12 +02:00
2011-11-02 13:48:41 +04:00
2011-10-04 23:57:46 +03:00
2011-10-25 14:18:19 -07:00
2011-10-25 14:18:19 -07:00
2011-10-25 14:18:19 -07:00
2011-11-02 22:05:08 +04:00
2011-10-12 02:04:03 +04:00
2011-07-08 18:46:47 +04:00
2011-11-02 22:05:08 +04:00
2011-11-12 11:29:12 +02:00
2011-03-01 13:24:36 +01:00
2011-09-26 20:26:47 +03:00
2010-09-28 12:39:33 -07:00
2011-09-30 18:55:02 -07:00
2011-05-21 00:46:18 +03:00
2011-05-28 05:11:32 +03:00
2011-06-06 20:28:15 +02:00
2011-06-07 18:13:02 +02:00
2010-11-23 23:39:59 +02:00
2011-10-06 16:56:59 +03:00
2011-05-19 19:16:17 +02:00
2011-05-19 19:16:17 +02:00
2011-05-28 05:11:32 +03:00
2011-06-06 20:28:15 +02:00
2011-06-09 17:23:39 +02:00
2011-11-02 13:48:41 +04:00
2011-05-19 19:01:46 +02:00
2011-05-19 19:01:46 +02:00
2011-05-28 05:11:32 +03:00
2011-06-09 17:23:39 +02:00
2011-06-07 18:13:02 +02:00
2011-06-07 18:13:02 +02:00
2011-05-28 05:11:32 +03:00
2011-05-28 05:11:32 +03:00
2010-11-02 17:22:57 +02:00
2011-05-28 05:11:32 +03:00
2010-07-19 11:03:52 +02:00
2011-05-11 14:09:48 +03:00
2011-09-26 20:26:47 +03:00
2011-09-26 20:26:47 +03:00
2010-12-06 23:38:31 +03:00
2011-03-01 13:24:36 +01:00
2010-09-22 23:33:18 +04:00
2011-07-02 17:37:59 +03:00
2011-05-03 19:10:10 +03:00
2011-09-26 20:26:47 +03:00
2011-06-06 12:19:35 -07:00
2011-10-05 18:18:00 +03:00
2010-11-03 22:40:53 +01:00
2010-08-17 11:14:46 +04:00
2011-05-21 00:46:18 +03:00
2011-05-17 10:35:24 +03:00
2011-03-31 14:29:23 +02:00
2011-03-01 15:30:18 +03:00