1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0

into sinisa.nasamreza.org:/mnt/work/mysql-4.0


sql/field.cc:
  Auto merged
This commit is contained in:
unknown
2003-12-13 15:41:20 +02:00
4 changed files with 15 additions and 3 deletions

View File

@ -632,7 +632,7 @@ void Field_decimal::store(const char *from,uint len)
if (zerofill)
{
left_wall=to-1;
while (pos != left_wall) // Fill with zeros
while (pos > left_wall) // Fill with zeros
*pos--='0';
}
else
@ -640,7 +640,7 @@ void Field_decimal::store(const char *from,uint len)
left_wall=to+(sign_char != 0)-1;
if (!expo_sign_char) // If exponent was specified, ignore prezeros
{
for (;pos != left_wall && pre_zeros_from !=pre_zeros_end;
for (;pos > left_wall && pre_zeros_from !=pre_zeros_end;
pre_zeros_from++)
*pos--= '0';
}