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