summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2006-06-16 12:17:20 +0200
committerunknown <serg@serg.mylan>2006-06-16 12:17:20 +0200
commita22109027d9f80a151c936b33ced90aa8b117f03 (patch)
tree5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/sql_string.h
parent35556fd1669d9c90d69d9029c6560b790337d70a (diff)
downloadmariadb-git-a22109027d9f80a151c936b33ced90aa8b117f03.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.h8
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