mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
post-merge fixes.
most tests pass. 5.3 merge is next
This commit is contained in:
parent
9809f05199
commit
b4a0b2c2f8
221 changed files with 2067 additions and 1877 deletions
|
|
@ -409,7 +409,7 @@ void field_real::add()
|
|||
|
||||
if ((decs = decimals()) == NOT_FIXED_DEC)
|
||||
{
|
||||
length= my_sprintf(buff, (buff, "%g", num));
|
||||
length= sprintf(buff, "%g", num);
|
||||
if (rint(num) != num)
|
||||
max_notzero_dec_len = 1;
|
||||
}
|
||||
|
|
@ -420,7 +420,7 @@ void field_real::add()
|
|||
snprintf(buff, sizeof(buff)-1, "%-.*f", (int) decs, num);
|
||||
length = (uint) strlen(buff);
|
||||
#else
|
||||
length= my_sprintf(buff, (buff, "%-.*f", (int) decs, num));
|
||||
length= sprintf(buff, "%-.*f", (int) decs, num);
|
||||
#endif
|
||||
|
||||
// We never need to check further than this
|
||||
|
|
@ -1002,9 +1002,9 @@ void field_decimal::get_opt_type(String *answer,
|
|||
my_decimal_set_zero(&zero);
|
||||
my_bool is_unsigned= (my_decimal_cmp(&zero, &min_arg) >= 0);
|
||||
|
||||
length= my_sprintf(buff, (buff, "DECIMAL(%d, %d)",
|
||||
(int) (max_length - (item->decimals ? 1 : 0)),
|
||||
item->decimals));
|
||||
length= sprintf(buff, "DECIMAL(%d, %d)",
|
||||
(int) (max_length - (item->decimals ? 1 : 0)),
|
||||
item->decimals);
|
||||
if (is_unsigned)
|
||||
length= (uint) (strmov(buff+length, " UNSIGNED")- buff);
|
||||
answer->append(buff, length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue