diff options
author | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
commit | 0237d9b0af6c9ddc182fe9389d788a094608ec43 (patch) | |
tree | 5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/sql_string.cc | |
parent | 2996b49af72ab0ceef02c13ef5279e59ae9e4eeb (diff) | |
download | mariadb-git-0237d9b0af6c9ddc182fe9389d788a094608ec43.tar.gz |
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
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index 39395ae2ca5..f86c05d2f4f 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -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; |