mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql.com:/home/stewart/Documents/MySQL/5.0/main
into mysql.com:/home/stewart/Documents/MySQL/5.1/new
This commit is contained in:
@ -1075,9 +1075,9 @@ int decimal2longlong(decimal_t *from, longlong *to)
|
||||
}
|
||||
}
|
||||
/* boundary case: 9223372036854775808 */
|
||||
if (unlikely(from->sign==0 && x < 0 && -x < 0))
|
||||
if (unlikely(from->sign==0 && x == LONGLONG_MIN))
|
||||
{
|
||||
*to= -1-x;
|
||||
*to= LONGLONG_MAX;
|
||||
return E_DEC_OVERFLOW;
|
||||
}
|
||||
|
||||
@ -2681,7 +2681,8 @@ void test_pr(const char *s1, int prec, int dec, char filler, const char *orig,
|
||||
int slen= sizeof(s2);
|
||||
int res;
|
||||
|
||||
sprintf(s, "'%s', %d, %d, '%c'", s1, prec, dec, filler);
|
||||
sprintf(s, filler ? "'%s', %d, %d, '%c'" : "'%s', %d, %d, '\\0'",
|
||||
s1, prec, dec, filler);
|
||||
end= strend(s1);
|
||||
string2decimal(s1, &a, &end);
|
||||
res= decimal2string(&a, s2, &slen, prec, dec, filler);
|
||||
|
Reference in New Issue
Block a user