mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02:00
sql_select.cc:
Fixed bug #11412. Reversed the patch of cs 1.1934 for the function create_tmp_table. Modified the function to support tem_ref objects created for view fields. item_buff.cc: Fixed bug #11412. Modified implementation of new_Cached_item to support cacheing of view fields. item.h: Fixed bug #11412. Changed implementation of Item_ref::get_tmp_table_field and added Item_ref::get_tmp_table_item to support Item_ref objects created for view fields. view.test, view.result: Added a test case for bug #11412. mysql-test/r/view.result: Added a test case for bug #11412. mysql-test/t/view.test: Added a test case for bug #11412. sql/item.h: Fixed bug #11412. Changed implementation of Item_ref::get_tmp_table_field and added Item_ref::get_tmp_table_item to support Item_ref objects created for view fields. sql/item_buff.cc: Fixed bug #11412. Modified implementation of new_Cached_item to support cacheing of view fields. sql/sql_select.cc: Fixed bug #11412. Reversed the patch of cs 1.1934 for the function create_tmp_table. Modified the function to support tem_ref objects created for view fields.
This commit is contained in:
parent
9a0d9c3569
commit
1c3f8cc214
5 changed files with 79 additions and 30 deletions
|
|
@ -25,9 +25,9 @@
|
|||
|
||||
Cached_item *new_Cached_item(THD *thd, Item *item)
|
||||
{
|
||||
if (item->type() == Item::FIELD_ITEM &&
|
||||
!(((Item_field *) item)->field->flags & BLOB_FLAG))
|
||||
return new Cached_item_field((Item_field *) item);
|
||||
if (item->real_item()->type() == Item::FIELD_ITEM &&
|
||||
!(((Item_field *) (item->real_item()))->field->flags & BLOB_FLAG))
|
||||
return new Cached_item_field((Item_field *) (item->real_item()));
|
||||
switch (item->result_type()) {
|
||||
case STRING_RESULT:
|
||||
return new Cached_item_str(thd, (Item_field *) item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue