summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorgkodinov@dl145s.mysql.com <>2006-11-28 17:14:16 +0100
committergkodinov@dl145s.mysql.com <>2006-11-28 17:14:16 +0100
commit32c9e11df9e76454a3a0b49004f29722cc28295f (patch)
tree83a78303b4c4267413216f751a1b6558df61ee99 /strings
parent93f246d4c196d813f3870586534372d13b51fb03 (diff)
parentb7e72c7ba917c9c445c14f0338032c2fc4351d72 (diff)
downloadmariadb-git-32c9e11df9e76454a3a0b49004f29722cc28295f.tar.gz
Merge bk-internal:/home/bk/mysql-5.1
into dl145s.mysql.com:/data0/bk/team_tree_merge/MERGE/mysql-5.1-opt
Diffstat (limited to 'strings')
-rw-r--r--strings/decimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/decimal.c b/strings/decimal.c
index bb90978129d..6070271c684 100644
--- a/strings/decimal.c
+++ b/strings/decimal.c
@@ -1042,7 +1042,7 @@ int decimal2ulonglong(decimal_t *from, ulonglong *to)
x=x*DIG_BASE + *buf++;
if (unlikely(y > ((ulonglong) ULONGLONG_MAX/DIG_BASE) || x < y))
{
- *to=y;
+ *to=ULONGLONG_MAX;
return E_DEC_OVERFLOW;
}
}