1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

String::set(double) and set(longlong) -> set_real() and set_int()

fix Field::store(double) being used instead of store(longlong)

NB: overloading functions is evil
This commit is contained in:
unknown
2006-06-16 12:17:20 +02:00
parent 2996b49af7
commit 0237d9b0af
16 changed files with 83 additions and 83 deletions

View File

@ -96,7 +96,7 @@ bool String::realloc(uint32 alloc_length)
return FALSE;
}
bool String::set(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
bool String::set_int(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
{
uint l=20*cs->mbmaxlen+1;
int base= unsigned_flag ? 10 : -10;
@ -108,7 +108,7 @@ bool String::set(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
return FALSE;
}
bool String::set(double num,uint decimals, CHARSET_INFO *cs)
bool String::set_real(double num,uint decimals, CHARSET_INFO *cs)
{
char buff[331];
uint dummy_errors;