1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
unknown 620aea4fde Fix LP BUG#682683
Analysis:
The fix for LP BUG#680846 avoids evaluation of constant expressions
with subqueries in the GROUP/ORDER clauses in the procedure
remove_const(). The purpose of remove_const is to remove constant
expressions in the GROUP/ORDER clauses.
  
In order delay until execution the evaluation of such subqueries,
they were not removed in the GROUP/ORDER clause. As a result temp
table creation during execution attempted to create a column in the
temp table for each constant GROUP/ORDER expression. However, the
logic in create_tmp_table is to not create temp table columns for
constant items. The crash was due to a group Item without a
corresponding column in the temp table for GROUP BY.
  
Solution:
The patch adds back removal of constant expressions with subqueries.
In order for such expressions to be evaluated, so that the server can
ensure that such subquries return 1 row, the evaluation of these
expressions is delayed until execution.
2010-12-02 21:54:40 +02:00
..
2009-08-20 14:30:59 +02:00
2009-02-09 22:00:15 +01:00
2010-02-25 23:13:11 +04:00
2009-02-15 12:58:34 +02:00
2010-09-12 18:40:01 +02:00
2010-06-10 11:11:52 +02:00
2009-10-28 09:52:34 +02:00
2010-04-06 20:36:06 +02:00
2009-10-28 09:52:34 +02:00
2009-10-28 09:52:34 +02:00
2010-09-12 18:40:01 +02:00
2010-03-09 16:09:32 +01:00
2009-12-22 15:33:21 +03:00
2009-10-28 09:52:34 +02:00
2010-05-26 21:55:40 +03:00
2009-09-29 17:38:40 +02:00
2010-01-15 17:27:55 +02:00
2009-10-28 09:52:34 +02:00
2009-09-08 00:50:10 +04:00
2010-04-28 14:52:24 +02:00
2009-09-08 00:50:10 +04:00
2010-08-27 17:12:44 +03:00
2009-02-06 18:25:08 +01:00
2010-10-19 15:58:35 +02:00
2010-08-27 17:12:44 +03:00
2009-05-06 15:00:14 +05:30
2009-10-28 09:52:34 +02:00
2009-09-08 00:50:10 +04:00
2009-06-09 15:19:13 +02:00
2009-06-09 15:19:13 +02:00
2009-12-22 15:33:21 +03:00
2010-01-15 16:58:25 +01:00
2010-10-19 15:58:35 +02:00
2010-03-06 11:14:55 -08:00
2010-08-30 16:25:23 +03:00
2010-09-06 02:15:34 +03:00
2010-11-02 16:08:02 -07:00
2010-04-28 14:52:24 +02:00
2009-10-28 09:52:34 +02:00
2010-08-02 12:01:24 +03:00
2009-10-28 09:52:34 +02:00
2010-07-16 12:58:24 +04:00
2009-10-28 09:52:34 +02:00
2010-09-06 02:15:34 +03:00
2009-06-25 02:44:14 +04:00
2010-03-04 09:03:07 +01:00
2009-10-04 01:20:51 +02:00
2010-09-20 15:17:59 +02:00
2010-08-25 22:22:33 +02:00
2010-10-19 15:58:35 +02:00
2010-01-29 16:54:27 +02:00
2009-02-03 14:45:17 +01:00
2009-10-28 09:52:34 +02:00
2009-08-12 12:03:05 +02:00
2010-06-14 18:58:52 +02:00
2010-06-26 14:05:41 +04:00
2009-09-08 00:50:10 +04:00
2009-10-28 09:52:34 +02:00
2010-01-15 10:51:39 +02:00
2009-10-28 09:52:34 +02:00
2009-07-03 10:19:32 +02:00
2009-11-27 18:10:28 +02:00
2010-04-08 14:10:05 +02:00
2010-03-21 21:58:19 +01:00
2009-06-10 11:58:36 +03:00
2010-12-02 21:54:40 +02:00
2009-02-19 18:24:25 -05:00
2010-05-26 21:55:40 +03:00
2009-01-31 02:08:41 +01:00
2010-06-10 11:11:52 +02:00
2010-09-20 15:17:59 +02:00
2010-08-13 14:18:46 +03:00
2010-08-02 12:01:24 +03:00
2010-05-26 21:55:40 +03:00