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:
@ -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
|
||||
|
Reference in New Issue
Block a user