summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2002-12-19 09:38:28 +0400
committerbar@bar.mysql.r18.ru <>2002-12-19 09:38:28 +0400
commit6ac401b550bb3b05fda0a6bb569944bf29000fed (patch)
tree00579db9d15214c70bc9b6f49d87a5618c0228e5 /sql/protocol.cc
parent161fec7b8b2215770f435c5bb2d6e6871ff7f807 (diff)
downloadmariadb-git-6ac401b550bb3b05fda0a6bb569944bf29000fed.tar.gz
thd_charset has been moved to variables structure
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index 88bfe6831c4..9d7dc66b452 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -687,7 +687,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());
}
@@ -697,7 +697,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());
}