summaryrefslogtreecommitdiff
path: root/libmysqld/lib_sql.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r--libmysqld/lib_sql.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index b41bd50b2c6..847b1fd7ad9 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -1241,26 +1241,3 @@ int vprint_msg_to_log(enum loglevel level __attribute__((unused)),
return 0;
}
-
-bool Protocol::net_store_data(const uchar *from, size_t length,
- CHARSET_INFO *from_cs, CHARSET_INFO *to_cs)
-{
- uint conv_length= to_cs->mbmaxlen * length / from_cs->mbminlen;
- uint dummy_error;
- char *field_buf;
- if (!thd->mysql) // bootstrap file handling
- return false;
-
- if (!(field_buf= (char*) alloc_root(alloc, conv_length + sizeof(uint) + 1)))
- return true;
- *next_field= field_buf + sizeof(uint);
- length= copy_and_convert(*next_field, conv_length, to_cs,
- (const char*) from, length, from_cs, &dummy_error);
- *(uint *) field_buf= length;
- (*next_field)[length]= 0;
- if (next_mysql_field->max_length < length)
- next_mysql_field->max_length= length;
- ++next_field;
- ++next_mysql_field;
- return false;
-}