summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <bar@eagle.intranet.mysql.r18.ru>2005-03-28 14:08:25 +0500
committerunknown <bar@eagle.intranet.mysql.r18.ru>2005-03-28 14:08:25 +0500
commit1747bead1de12963b451f8052363c7809dfda34c (patch)
tree0fd1c204e45e8864b786c805dc76f43e5a083635 /sql/item_func.cc
parent104d81883f8d2425002c48178663e3e72d351b16 (diff)
parentf80b366f40cea4f4367c66e3423ec5a7370e5ed0 (diff)
downloadmariadb-git-1747bead1de12963b451f8052363c7809dfda34c.tar.gz
Merge eagle.intranet.mysql.r18.ru:/home/bar/mysql-4.1
into eagle.intranet.mysql.r18.ru:/home/bar/mysql-5.0 mysql-test/r/user_var.result: Auto merged mysql-test/t/user_var.test: Auto merged sql/item_func.cc: Auto merged
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index e54b4f01a55..20a7c453f11 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -3569,20 +3569,20 @@ Item_func_set_user_var::update()
case REAL_RESULT:
{
res= update_hash((void*) &save_result.vreal,sizeof(save_result.vreal),
- REAL_RESULT, &my_charset_bin, DERIVATION_NONE);
+ REAL_RESULT, &my_charset_bin, DERIVATION_IMPLICIT);
break;
}
case INT_RESULT:
{
res= update_hash((void*) &save_result.vint, sizeof(save_result.vint),
- INT_RESULT, &my_charset_bin, DERIVATION_NONE);
+ INT_RESULT, &my_charset_bin, DERIVATION_IMPLICIT);
break;
}
case STRING_RESULT:
{
if (!save_result.vstr) // Null value
res= update_hash((void*) 0, 0, STRING_RESULT, &my_charset_bin,
- DERIVATION_NONE);
+ DERIVATION_IMPLICIT);
else
res= update_hash((void*) save_result.vstr->ptr(),
save_result.vstr->length(), STRING_RESULT,
@@ -3850,7 +3850,10 @@ void Item_func_get_user_var::fix_length_and_dec()
}
}
else
+ {
+ collation.set(&my_charset_bin, DERIVATION_IMPLICIT);
null_value= 1;
+ }
if (error)
thd->fatal_error();