mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge bk@192.168.21.1:/usr/home/bk/mysql-5.0
into deer.(none):/home/hf/work/mysql-5.0.10337
This commit is contained in:
@ -1563,7 +1563,13 @@ decimal_round(decimal_t *from, decimal_t *to, int scale,
|
||||
break;
|
||||
if (buf1-- == to->buf)
|
||||
{
|
||||
decimal_make_zero(to);
|
||||
/* making 'zero' with the proper scale */
|
||||
dec1 *p0= to->buf + frac0 + 1;
|
||||
to->intg=1;
|
||||
to->frac= max(scale, 0);
|
||||
to->sign= 0;
|
||||
for (buf1= to->buf; buf1<p0; buf1++)
|
||||
*buf1= 0;
|
||||
return E_DEC_OK;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user