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