summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-12-07 15:47:00 +0200
committermonty@mysql.com <>2004-12-07 15:47:00 +0200
commit563500994a31c2239a7d87ba9c5ea889493e3596 (patch)
treeb1c918186908fb490aa860c35dc9e2154aa633c8 /sql/item_func.h
parent77207d19f20f21c54b8d5279c6924f4c4bdaaa51 (diff)
downloadmariadb-git-563500994a31c2239a7d87ba9c5ea889493e3596.tar.gz
Update results for new varchar handling
Fixed compiler warnings String results in CREATE ... SELECT are now created as CHAR(0), VARCHAR(X) or TEXT() depending on item->max_length
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 241240a49ca..4657ee81dfb 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -986,7 +986,7 @@ 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_STRING; }
+ 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