diff options
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 5ec51a42dc9..0239d867f6b 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -725,7 +725,7 @@ bool Protocol_simple::store(float from, uint32 decimals, String *buffer) DBUG_ASSERT(field_types == 0 || field_types[field_pos++] == MYSQL_TYPE_FLOAT); #endif - buffer->set((double) from, decimals, thd->thd_charset); + buffer->set((double) from, decimals, thd->variables.thd_charset); return net_store_data(packet,(char*) buffer->ptr(), buffer->length()); } @@ -735,7 +735,7 @@ bool Protocol_simple::store(double from, uint32 decimals, String *buffer) DBUG_ASSERT(field_types == 0 || field_types[field_pos++] == MYSQL_TYPE_DOUBLE); #endif - buffer->set(from, decimals, thd->thd_charset); + buffer->set(from, decimals, thd->variables.thd_charset); return net_store_data(packet,(char*) buffer->ptr(), buffer->length()); } |