summaryrefslogtreecommitdiff
path: root/sql/item_row.cc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2006-04-12 18:30:54 +0400
committerkonstantin@mysql.com <>2006-04-12 18:30:54 +0400
commit75792fc0dca5d744662f87a7edc5805ce26ffe0c (patch)
tree96d659fbe401a4fa1269027a7637692d3bfc1258 /sql/item_row.cc
parent7c7015909768efdb93e3dfa7e9f4392ad9bd6e2f (diff)
parenta81ea4a83027ff8965e4b6a6a3cb5c917222222f (diff)
downloadmariadb-git-75792fc0dca5d744662f87a7edc5805ce26ffe0c.tar.gz
Merge mysql.com:/opt/local/work/mysql-4.1-16365
into mysql.com:/opt/local/work/mysql-5.0-merge
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r--sql/item_row.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc
index 75c3f8a2922..f5c8d511025 100644
--- a/sql/item_row.cc
+++ b/sql/item_row.cc
@@ -26,7 +26,7 @@
*/
Item_row::Item_row(List<Item> &arg):
- Item(), used_tables_cache(0), array_holder(1), const_item_cache(1), with_null(0)
+ Item(), used_tables_cache(0), const_item_cache(1), with_null(0)
{
//TODO: think placing 2-3 component items in item (as it done for function)
@@ -85,6 +85,20 @@ bool Item_row::fix_fields(THD *thd, Item **ref)
}
+void Item_row::cleanup()
+{
+ DBUG_ENTER("Item_row::cleanup");
+
+ Item::cleanup();
+ /* Reset to the original values */
+ used_tables_cache= 0;
+ const_item_cache= 1;
+ with_null= 0;
+
+ DBUG_VOID_RETURN;
+}
+
+
void Item_row::split_sum_func(THD *thd, Item **ref_pointer_array,
List<Item> &fields)
{