1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00
Files
mariadb/mysql-test/r
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-01-25 12:14:28 +05:30
2011-05-02 20:58:45 +03:00
2010-12-10 23:23:34 -08:00
2011-06-09 17:23:39 +02:00
2011-07-21 15:55:08 -07:00
2011-06-07 18:13:02 +02:00
2011-05-19 19:16:17 +02:00
2011-05-03 19:10:10 +03:00
2011-02-03 17:00:28 +02:00
2011-07-12 23:47:35 -07:00
2011-09-10 18:01:27 +03:00
2011-06-09 17:23:39 +02:00
2010-11-25 00:57:34 +02:00
2011-06-09 17:23:39 +02:00
2011-06-07 18:13:02 +02:00
2011-05-10 18:17:43 +03:00
2011-05-03 19:10:10 +03:00
2011-07-20 21:55:55 -07:00
2011-10-22 07:19:43 -07:00
2011-11-11 14:53:26 -08:00
2011-11-06 01:23:03 -07:00
2011-10-28 04:07:11 -07:00
2011-10-28 04:07:11 -07:00
2010-10-19 15:58:35 +02:00
2011-11-06 01:23:03 -07:00
2011-02-03 17:00:28 +02:00
2011-05-28 05:11:32 +03:00
2011-03-29 10:09:05 +02: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
2011-11-11 14:53:26 -08:00
2011-11-06 01:23:03 -07:00
2011-06-15 21:48:38 -07:00
2011-11-06 01:23:03 -07:00
2011-11-11 14:53:26 -08:00
2011-11-06 01:23:03 -07:00
2010-09-06 02:15:34 +03:00
2011-05-10 18:17:43 +03:00
2011-05-02 20:58:45 +03:00
2011-05-18 15:17:26 +02:00
2011-07-21 15:50:25 +03:00
2011-06-24 21:43:31 +04:00
2010-10-15 20:13:35 +05:00
2011-02-03 17:00:28 +02:00
2011-08-15 23:18:36 -07:00
2011-06-07 18:13:02 +02:00
2011-11-06 01:23:03 -07:00
2010-12-10 23:23:34 -08:00
2011-11-06 01:23:03 -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
2011-05-02 20:58:45 +03:00
2011-05-28 05:11:32 +03:00
2011-07-04 14:51:16 +03:00
2011-05-28 05:11:32 +03:00
2011-11-01 17:42:52 +02:00
2011-09-28 17:20:43 +03:00
2011-11-12 11:29:12 +02:00
2011-10-25 14:18:19 -07:00
2011-10-25 14:18:19 -07:00
2011-11-12 11:29:12 +02:00
2010-09-28 12:39:33 -07:00
2011-05-28 05:11:32 +03:00
2011-06-07 18:13:02 +02: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-09 17:23:39 +02:00
2011-05-19 19:01:46 +02:00
2011-05-19 19:01:46 +02:00
2011-06-09 17:23:39 +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
2011-06-06 12:19:35 -07:00
2011-05-17 10:35:24 +03:00
2011-03-31 14:29:23 +02:00