diff options
author | Georgi Kodinov <joro@sun.com> | 2009-06-04 12:52:40 +0300 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-06-04 12:52:40 +0300 |
commit | a037071a75cb388a17083ac0cca74e93b2dfd5d6 (patch) | |
tree | db585231e161fc99be624f81c4be84620ad6c790 /sql/item.cc | |
parent | 8041311e24441351fbb42b5ef99f9fd703fde5da (diff) | |
download | mariadb-git-a037071a75cb388a17083ac0cca74e93b2dfd5d6.tar.gz |
Bug #36995: valgrind error in remove_const during subquery executions
When copying the Item class one must copy its attributes as well.
mysql-test/r/innodb_mysql.result:
Bug #36995: test case
mysql-test/t/innodb_mysql.test:
Bug #36995: test case
sql/item.cc:
Bug #36995: copy attributes in the copy constructor
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index 7c4e86d756f..7a81e48fcee 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -409,6 +409,7 @@ Item::Item(THD *thd, Item *item): name(item->name), orig_name(item->orig_name), max_length(item->max_length), + name_length(item->name_length), marker(item->marker), decimals(item->decimals), maybe_null(item->maybe_null), @@ -416,7 +417,9 @@ Item::Item(THD *thd, Item *item): unsigned_flag(item->unsigned_flag), with_sum_func(item->with_sum_func), fixed(item->fixed), + is_autogenerated_name(item->is_autogenerated_name), collation(item->collation), + with_subselect(item->with_subselect), cmp_context(item->cmp_context) { next= thd->free_list; // Put in free list |