diff options
author | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-06-15 16:24:02 +0500 |
---|---|---|
committer | unknown <gluh@eagle.intranet.mysql.r18.ru> | 2006-06-15 16:24:02 +0500 |
commit | 689205ae947176220ef7ba7332ffa2b765c4796a (patch) | |
tree | 65069b58df244706ff087208a97f5f9682b877e8 /sql/item_buff.cc | |
parent | 23815efc3ca21ae0bdff9847038e0ce553d5f7e4 (diff) | |
download | mariadb-git-689205ae947176220ef7ba7332ffa2b765c4796a.tar.gz |
Fix for bug#19667 group by a decimal expression yields wrong result
mysql-test/r/type_newdecimal.result:
Fix for bug#19667 group by a decimal expression yields wrong result
test case
mysql-test/t/type_newdecimal.test:
Fix for bug#19667 group by a decimal expression yields wrong result
test case
Diffstat (limited to 'sql/item_buff.cc')
-rw-r--r-- | sql/item_buff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_buff.cc b/sql/item_buff.cc index 9db2f465080..1661f04a4ae 100644 --- a/sql/item_buff.cc +++ b/sql/item_buff.cc @@ -132,7 +132,7 @@ bool Cached_item_decimal::cmp() { my_decimal tmp; my_decimal *ptmp= item->val_decimal(&tmp); - if (null_value != item->null_value || my_decimal_cmp(&value, ptmp) == 0) + if (null_value != item->null_value || my_decimal_cmp(&value, ptmp)) { null_value= item->null_value; my_decimal2decimal(ptmp, &value); |