diff options
author | sasha@mysql.sashanet.com <> | 2000-11-03 07:04:33 -0700 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2000-11-03 07:04:33 -0700 |
commit | 60cdfe07f77708ba8a391ea84448dfa66b81da9a (patch) | |
tree | 5ee24e3e58295b7a4a6a0b779c5c380b4ab7891f /sql/item_strfunc.cc | |
parent | 96815f82a670f107a2e34595c4b8a9330e00e3ea (diff) | |
download | mariadb-git-60cdfe07f77708ba8a391ea84448dfa66b81da9a.tar.gz |
fixed bugs in elt() and make_set()
added two new test cases
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index a52b9a85857..c6a5427b444 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1190,6 +1190,7 @@ void Item_func_elt::fix_length_and_dec() } maybe_null=1; // NULL if wrong first arg used_tables_cache|=item->used_tables(); + const_item_cache&=item->const_item(); } @@ -1245,6 +1246,7 @@ void Item_func_make_set::fix_length_and_dec() for (uint i=1 ; i < arg_count ; i++) max_length+=args[i]->max_length; used_tables_cache|=item->used_tables(); + const_item_cache&=item->const_item(); } |