summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-06-09 19:35:54 +0200
committermsvensson@neptunus.(none) <>2006-06-09 19:35:54 +0200
commit9ebf7944e36df42ea5bb61b34e32c8af0f4bc909 (patch)
treeb1300cd60bda26bcc40739b2f17fcceb8059cf88 /sql/item_subselect.cc
parent332c6902735f0c4aa6f56815bfa102fe0d0e5f7e (diff)
downloadmariadb-git-9ebf7944e36df42ea5bb61b34e32c8af0f4bc909.tar.gz
Bug #7498 User variable SET saves SIGNED BIGINT as UNSIGNED BIGINT
- Add unsigned flag to user_var_entry, used when 'type' is INT_RESULT - Propagate unsigned flag from the query executed by Item_single_row_subselect
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index d93f6501ebb..4e6b168c9e9 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -1497,6 +1497,7 @@ static Item_result set_row(List<Item> &item_list, Item *item,
item->max_length= sel_item->max_length;
res_type= sel_item->result_type();
item->decimals= sel_item->decimals;
+ item->unsigned_flag= sel_item->unsigned_flag;
*maybe_null= sel_item->maybe_null;
if (!(row[i]= Item_cache::get_cache(res_type)))
return STRING_RESULT; // we should return something