summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-06-09 19:35:54 +0200
committerunknown <msvensson@neptunus.(none)>2006-06-09 19:35:54 +0200
commitf067dfe1c6298985d2c1831c52d9910f233bc5da (patch)
treeb1300cd60bda26bcc40739b2f17fcceb8059cf88 /sql/sql_class.h
parent889e60dae8397f673212b1911e7a776ad512588a (diff)
downloadmariadb-git-f067dfe1c6298985d2c1831c52d9910f233bc5da.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 mysql-test/r/user_var.result: Update test results mysql-test/t/user_var.test: Add test case sql/item_func.cc: Add unsigned_flag to user_var_entry. Used when 'type' is INT_RESULT Pass unsigned_flag to 'update_hash' if type is INT_RESULT sql/item_func.h: Removed unused variable save_buff Add parameter unsigned_arg to 'update_hash' sql/item_subselect.cc: Propagate unsigned_flag to Item_singlerow_subselect from the items in the select to the cached items. sql/sql_class.h: Add unsigned_flag to user_var_entry. Used when 'type' is INT_RESULT
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 0ddba0e6f05..be13084b1ea 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -1954,6 +1954,7 @@ class user_var_entry
ulong length;
query_id_t update_query_id, used_query_id;
Item_result type;
+ bool unsigned_flag;
double val_real(my_bool *null_value);
longlong val_int(my_bool *null_value);