diff options
author | serg@serg.mylan <> | 2006-06-16 12:17:20 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2006-06-16 12:17:20 +0200 |
commit | d00b56549c8041bbbf992216caa478b330945688 (patch) | |
tree | 5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/sql_string.h | |
parent | 0845bc4936497d6606c1d2e06c34d2e34d2e3904 (diff) | |
download | mariadb-git-d00b56549c8041bbbf992216caa478b330945688.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.h')
-rw-r--r-- | sql/sql_string.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index 4e1d3a4837e..b1d417be2c2 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -139,12 +139,12 @@ public: } str_charset=cs; } - bool set(longlong num, bool unsigned_flag, CHARSET_INFO *cs); + bool set_int(longlong num, bool unsigned_flag, CHARSET_INFO *cs); bool set(longlong num, CHARSET_INFO *cs) - { return set(num, false, cs); } + { return set_int(num, false, cs); } bool set(ulonglong num, CHARSET_INFO *cs) - { return set((longlong)num, true, cs); } - bool set(double num,uint decimals, CHARSET_INFO *cs); + { return set_int((longlong)num, true, cs); } + bool set_real(double num,uint decimals, CHARSET_INFO *cs); /* PMG 2004.11.12 |