diff options
author | unknown <thek@adventure.(none)> | 2007-05-18 14:29:24 +0200 |
---|---|---|
committer | unknown <thek@adventure.(none)> | 2007-05-18 14:29:24 +0200 |
commit | ad4da53510fe17b7b20912753232719fd8d3e033 (patch) | |
tree | 4f8326572903715f38fff117eb849e5a7360745c /sql/item_func.h | |
parent | bf1198a91354a659a812a7490ac180768b19fe05 (diff) | |
parent | 755ae21b826d6e644560b0ad397eb46cd7191369 (diff) | |
download | mariadb-git-ad4da53510fe17b7b20912753232719fd8d3e033.tar.gz |
Merge adventure.(none):/home/thek/Development/cpp/bug26277/my51-bug26277
into adventure.(none):/home/thek/Development/cpp/mysql-5.1-runtime
mysql-test/t/sp-vars.test:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_func.h:
Auto merged
mysql-test/r/sp-vars.result:
manual merge
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index b76877f90bc..827bfd56e87 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -1256,11 +1256,12 @@ class Item_func_get_user_var :public Item_func, private Settable_routine_parameter { user_var_entry *var_entry; + Item_result m_cached_result_type; public: LEX_STRING name; // keep it public Item_func_get_user_var(LEX_STRING a): - Item_func(), name(a) {} + Item_func(), name(a), m_cached_result_type(STRING_RESULT) {} enum Functype functype() const { return GUSERVAR_FUNC; } LEX_STRING get_name() { return name; } double val_real(); @@ -1274,13 +1275,11 @@ public: We must always return variables as strings to guard against selects of type select @t1:=1,@t1,@t:="hello",@t from foo where (@t1:= t2.b) */ - enum_field_types field_type() const { return MYSQL_TYPE_VARCHAR; } const char *func_name() const { return "get_user_var"; } bool const_item() const; table_map used_tables() const { return const_item() ? 0 : RAND_TABLE_BIT; } bool eq(const Item *item, bool binary_cmp) const; - private: bool set_value(THD *thd, sp_rcontext *ctx, Item **it); |