evgen@moonbone.local
1d820585ae
Fixed bug#19077: A nested materialized derived table is used before being populated.
...
The convert_constant_item() function converts constant items to ints on
prepare phase to optimize execution speed. In this case it tries to evaluate
subselect which contains a derived table and is contained in a derived table.
All derived tables are filled only after all derived tables are prepared.
So evaluation of subselect with derived table at the prepare phase will
return a wrong result.
A new flag with_subselect is added to the Item class. It indicates that
expression which this item represents is a subselect or contains a subselect.
It is set to 0 by default. It is set to 1 in the Item_subselect constructor
for subselects.
For Item_func and Item_cond derived classes it is set after fixing any argument
in Item_func::fix_fields() and Item_cond::fix_fields accordingly.
The convert_constant_item() function now doesn't convert a constant item
if the with_subselect flag set in it.
2006-05-18 00:55:28 +04:00
..
2006-05-03 16:33:42 +05:00
2006-05-04 18:35:58 +03:00
2006-05-04 18:35:58 +03:00
2006-01-24 08:30:54 +01:00
2006-03-01 15:50:15 +04:00
2006-03-02 20:49:10 -05:00
2006-02-24 18:34:15 +02:00
2006-05-09 13:31:46 -07:00
2006-05-13 13:13:05 +05:00
2006-03-29 19:31:16 +05:00
2006-01-26 17:54:34 +01:00
2006-03-30 09:13:25 +05:00
2006-03-21 14:35:49 +01:00
2006-02-24 18:34:15 +02:00
2006-02-24 18:34:15 +02:00
2006-03-23 14:03:39 +04:00
2006-04-06 10:51:23 +05:00
2006-04-18 18:10:47 +02:00
2006-01-26 17:54:34 +01:00
2006-03-20 14:43:02 +04:00
2006-02-09 16:23:09 +02:00
2006-04-17 15:01:55 +05:00
2006-03-23 14:03:39 +04:00
2006-03-30 17:14:55 +04:00
2006-05-05 00:22:01 +03:00
2006-05-02 18:31:20 -07:00
2006-05-09 18:13:01 +03:00
2006-05-09 23:01:31 +03:00
2006-05-03 18:02:43 +04:00
2006-02-28 11:17:40 +01:00
2006-01-23 17:15:33 +04:00
2006-03-22 14:57:24 +01:00
2006-04-13 16:19:21 +05:00
2006-04-21 08:19:38 -07:00
2006-02-14 16:22:37 +03:00
2006-05-15 14:18:23 +04:00
2006-03-06 12:52:38 +04:00
2006-05-06 19:45:24 +04:00
2006-04-13 15:07:50 +03:00
2006-05-12 10:27:20 +02:00
2006-05-10 18:27:42 +05:00
2006-05-04 18:35:58 +03:00
2006-03-02 15:18:49 +03:00
2006-04-18 18:10:47 +02:00
2006-03-06 15:14:15 +04:00
2006-05-09 18:13:01 +03:00
2006-03-20 16:28:25 +04:00
2006-04-24 13:25:50 +02:00
2006-04-27 16:32:40 +02:00
2006-04-12 15:13:16 +02:00
2006-05-06 23:48:13 -07:00
2006-04-19 15:13:50 +05:00
2006-02-03 00:07:36 +03:00
2006-02-23 23:41:15 +03:00
2006-02-14 03:09:17 +03:00
2006-05-10 14:34:03 +04:00
2006-05-10 14:34:03 +04:00
2006-04-13 16:05:32 +04:00
2006-02-11 21:51:43 +03:00
2006-05-04 17:47:25 +02:00
2006-03-20 13:42:02 +04:00
2006-05-12 17:34:36 +05:00
2006-05-06 13:15:00 +04:00
2006-02-24 18:34:15 +02:00
2006-05-03 16:42:39 +05:00
2006-04-05 01:09:07 +04:00
2006-03-29 16:45:29 -08:00
2006-05-13 11:56:05 -07:00
2006-05-12 15:09:25 +05:00
2006-04-19 18:08:15 -07:00
2006-03-06 23:43:47 +01:00
2006-03-29 10:56:11 -05:00
2006-02-06 15:15:44 +01:00
2006-05-09 13:31:46 -07:00
2006-05-13 13:13:05 +05:00
2006-05-09 23:01:31 +03:00
2006-03-10 15:06:04 +01:00
2006-05-09 22:35:51 -04:00
2006-02-09 16:23:09 +02:00
2006-05-16 10:01:07 +02:00
2006-05-04 18:35:58 +03:00
2006-05-04 09:58:03 +05:00
2006-02-10 17:50:17 +01:00
2006-04-20 12:06:22 +02:00
2006-05-03 23:17:16 +02:00
2006-02-27 10:29:55 +01:00
2006-05-05 00:53:34 +02:00
2006-02-07 19:57:31 +01:00
2006-03-28 10:01:23 +02:00
2006-02-14 17:15:24 +01:00
2006-03-28 14:38:16 +02:00
2006-03-23 09:48:46 +01:00
2006-04-24 10:21:09 +02:00
2006-05-01 09:46:00 -04:00
2006-05-03 14:06:34 +02:00
2006-04-21 00:36:20 -07:00
2006-05-12 12:31:22 +02:00
2006-04-25 04:27:23 +04:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-04-28 11:23:31 +02:00
2006-04-25 04:27:23 +04:00
2006-03-15 19:15:52 +02:00
2006-02-24 18:34:15 +02:00
2006-01-26 17:54:34 +01:00
2006-01-27 10:49:07 +01:00
2006-01-24 08:30:54 +01:00
2006-01-26 17:54:34 +01:00
2006-02-09 16:23:09 +02:00
2006-03-02 15:18:49 +03:00
2006-04-20 19:43:02 +02:00
2006-01-26 17:54:34 +01:00
2006-01-26 17:54:34 +01:00
2006-01-26 17:54:34 +01:00
2006-01-26 12:49:55 +02:00
2006-01-24 08:30:54 +01:00
2006-04-21 18:55:04 +04:00
2006-01-27 10:49:07 +01:00
2006-01-27 10:49:07 +01:00
2006-01-27 10:49:07 +01:00
2006-01-24 08:30:54 +01:00
2006-01-24 08:30:54 +01:00
2006-01-27 10:49:07 +01:00
2006-01-26 17:54:34 +01:00
2006-01-26 12:49:55 +02:00
2006-04-18 18:10:47 +02:00
2006-04-13 20:42:48 +02:00
2006-01-27 10:49:07 +01:00
2006-01-24 08:30:54 +01:00
2006-01-26 17:54:34 +01:00
2006-01-26 17:54:34 +01:00
2006-03-02 15:18:49 +03:00
2006-05-16 09:26:57 +02:00
2006-02-09 16:23:09 +02:00
2006-03-08 00:13:27 +03:00
2006-03-08 10:15:48 +01:00
2006-05-11 16:29:02 +02:00
2006-05-07 19:54:57 +03:00
2006-05-11 19:47:00 -07:00
2006-03-10 14:40:15 +03:00
2006-05-03 16:47:05 +05:00
2006-03-09 12:08:23 +01:00
2006-02-06 16:05:46 +01:00
2006-01-26 13:29:46 +01:00
2006-04-25 04:27:23 +04:00
2006-05-12 13:55:21 +04:00
2006-03-28 15:06:29 +04:00
2006-04-18 18:10:47 +02:00
2006-05-10 23:16:30 +04:00
2006-02-24 18:34:15 +02:00
2006-03-02 15:18:49 +03:00
2006-04-12 17:37:57 +04:00
2006-01-26 17:54:34 +01:00
2006-02-24 18:34:15 +02:00
2006-05-18 00:55:28 +04:00
2006-05-04 21:21:22 +03:00
2006-03-10 16:47:56 +02:00
2006-04-24 18:57:00 +04:00
2006-04-22 11:54:25 +04:00
2006-01-27 10:49:07 +01:00
2006-05-12 13:55:21 +04:00
2006-03-24 14:58:18 +03:00
2006-05-12 13:55:21 +04:00
2006-04-04 17:54:58 -07:00
2006-04-04 17:54:58 -07:00
2006-03-03 15:29:39 +04:00
2006-05-13 13:13:05 +05:00
2006-05-13 13:13:05 +05:00
2006-04-27 16:32:40 +02:00
2006-03-06 16:20:15 +04:00
2006-02-02 18:17:18 +03:00
2006-02-09 16:23:09 +02:00
2006-04-26 17:09:41 -07:00
2006-03-31 21:26:17 -08:00
2006-05-08 14:59:29 +02:00
2006-03-10 14:40:15 +03:00
2006-05-18 00:55:28 +04:00
2006-02-16 12:02:38 +01:00
2006-01-24 08:30:54 +01:00