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:
serg@serg.mylan
2006-06-16 12:17:20 +02:00
parent 0845bc4936
commit d00b56549c
16 changed files with 83 additions and 83 deletions

View File

@ -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