diff options
author | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2006-06-16 12:17:20 +0200 |
commit | 0237d9b0af6c9ddc182fe9389d788a094608ec43 (patch) | |
tree | 5306a4b107a18f253dc8ea414ab57aff0800f12c /sql/protocol.cc | |
parent | 2996b49af72ab0ceef02c13ef5279e59ae9e4eeb (diff) | |
download | mariadb-git-0237d9b0af6c9ddc182fe9389d788a094608ec43.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/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index bb0891cdbbe..2edc11b6b3e 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -897,7 +897,7 @@ bool Protocol_simple::store(float from, uint32 decimals, String *buffer) field_types[field_pos] == MYSQL_TYPE_FLOAT); field_pos++; #endif - buffer->set((double) from, decimals, thd->charset()); + buffer->set_real((double) from, decimals, thd->charset()); return net_store_data((char*) buffer->ptr(), buffer->length()); } @@ -909,7 +909,7 @@ bool Protocol_simple::store(double from, uint32 decimals, String *buffer) field_types[field_pos] == MYSQL_TYPE_DOUBLE); field_pos++; #endif - buffer->set(from, decimals, thd->charset()); + buffer->set_real(from, decimals, thd->charset()); return net_store_data((char*) buffer->ptr(), buffer->length()); } |