item_func.cc:

  Post merge additional fix for DECIMAL type:
  Bugs: #9425: A user variable doesn't always have implicit coercibility
parent ef81035f
...@@ -3594,11 +3594,11 @@ Item_func_set_user_var::update() ...@@ -3594,11 +3594,11 @@ Item_func_set_user_var::update()
{ {
if (!save_result.vdec) // Null value if (!save_result.vdec) // Null value
res= update_hash((void*) 0, 0, DECIMAL_RESULT, &my_charset_bin, res= update_hash((void*) 0, 0, DECIMAL_RESULT, &my_charset_bin,
DERIVATION_NONE); DERIVATION_IMPLICIT);
else else
res= update_hash((void*) save_result.vdec, res= update_hash((void*) save_result.vdec,
sizeof(my_decimal), DECIMAL_RESULT, sizeof(my_decimal), DECIMAL_RESULT,
&my_charset_bin, DERIVATION_NONE); &my_charset_bin, DERIVATION_IMPLICIT);
break; break;
} }
case ROW_RESULT: 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