1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

Set constant value of type DECIMAL_RESULT/REAL_RESULT in an update statement.

This commit is contained in:
Gagan Goel
2019-09-27 15:09:30 -04:00
parent 1f475340dc
commit 6aea9e68a5

View File

@ -1359,7 +1359,9 @@ uint32_t doUpdateDelete(THD* thd, gp_walk_info& gwi)
if (value->type() == Item::CONST_ITEM) if (value->type() == Item::CONST_ITEM)
{ {
if (value->cmp_type() == STRING_RESULT) if (value->cmp_type() == STRING_RESULT ||
value->cmp_type() == DECIMAL_RESULT ||
value->cmp_type() == REAL_RESULT)
{ {
//@Bug 2587 use val_str to replace value->name to get rid of 255 limit //@Bug 2587 use val_str to replace value->name to get rid of 255 limit
String val, *str; String val, *str;