diff options
author | hf@deer.(none) <> | 2003-12-30 14:08:19 +0400 |
---|---|---|
committer | hf@deer.(none) <> | 2003-12-30 14:08:19 +0400 |
commit | bfe134b86fad8eaa46196c8283cc91e6c77769b0 (patch) | |
tree | 2ae6e41d1324a906e2f8a6868b34fe75950e736f /sql/item_row.h | |
parent | 1547a03c797fa547f1664d9c56a313daf62972bc (diff) | |
download | mariadb-git-bfe134b86fad8eaa46196c8283cc91e6c77769b0.tar.gz |
Fix for prepared statements
Here i added Item_*::cleanup() functions,
removed a lot of ~Item_*'s,
added code to restore order_list and group_list
Diffstat (limited to 'sql/item_row.h')
-rw-r--r-- | sql/item_row.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_row.h b/sql/item_row.h index a09bd1a2c31..1b792f981fd 100644 --- a/sql/item_row.h +++ b/sql/item_row.h @@ -34,10 +34,14 @@ public: with_null(0) {} - ~Item_row() + void cleanup() { if (array_holder && items) + { sql_element_free(items); + items= 0; + array_holder= 0; + } } enum Type type() const { return ROW_ITEM; }; |