Commit 1bf4aa09 authored by unknown's avatar unknown

item_func.cc:

  Post merge additional fix for DECIMAL type:
  Bugs: #9425: A user variable doesn't always have implicit coercibility


sql/item_func.cc:
  Post merge additional fix for DECIMAL type:
  Bugs: #9425: A user variable doesn't always have implicit coercibility
parent 1747bead
......@@ -3594,11 +3594,11 @@ Item_func_set_user_var::update()
{
if (!save_result.vdec) // Null value
res= update_hash((void*) 0, 0, DECIMAL_RESULT, &my_charset_bin,
DERIVATION_NONE);
DERIVATION_IMPLICIT);
else
res= update_hash((void*) save_result.vdec,
sizeof(my_decimal), DECIMAL_RESULT,
&my_charset_bin, DERIVATION_NONE);
&my_charset_bin, DERIVATION_IMPLICIT);
break;
}
case ROW_RESULT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment