summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-06-08 21:59:03 +0500
committerunknown <hf@deer.(none)>2005-06-08 21:59:03 +0500
commit0537106bef083d3f413dc117168205ddce5796b5 (patch)
treef7a859128d47736db37b4dffedce2f202acd5462 /sql
parent8aba6f29cb8b09c863c271f89f13611c11927cb0 (diff)
parent1c5c678c139e2a2fbcda19a5d52ca35a07ecc7f9 (diff)
downloadmariadb-git-0537106bef083d3f413dc117168205ddce5796b5.tar.gz
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-5.0
into deer.(none):/home/hf/work/mysql-5.0.9764
Diffstat (limited to 'sql')
-rw-r--r--sql/my_decimal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h
index 27fd33cffbe..b65e6aedaa2 100644
--- a/sql/my_decimal.h
+++ b/sql/my_decimal.h
@@ -290,6 +290,11 @@ int int2my_decimal(uint mask, longlong i, my_bool unsigned_flag, my_decimal *d)
inline
void my_decimal_neg(decimal_t *arg)
{
+ if (decimal_is_zero(arg))
+ {
+ arg->sign= 0;
+ return;
+ }
decimal_neg(arg);
}