From d00b56549c8041bbbf992216caa478b330945688 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Fri, 16 Jun 2006 12:17:20 +0200 Subject: 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 --- sql/sql_string.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sql/sql_string.h') 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 -- cgit v1.2.1