diff options
author | igor@rurik.mysql.com <> | 2005-07-25 12:57:23 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2005-07-25 12:57:23 -0700 |
commit | 24d148d0257ba6f66b84b96134ab50fe18a7ee10 (patch) | |
tree | 4f5f2513b048293936bbcdb418a9b120f937ffa5 /sql/item_buff.cc | |
parent | d6d1a9aae20aed0bdbd3061c3aa5c95c9b962cac (diff) | |
download | mariadb-git-24d148d0257ba6f66b84b96134ab50fe18a7ee10.tar.gz |
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.
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r-- | sql/item_buff.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc index a67e420170a..9db2f465080 100644 --- a/sql/item_buff.cc +++ b/sql/item_buff.cc @@ -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); |