summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index 2b0ae60f944..3ad25600230 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -545,6 +545,11 @@ bool Protocol::send_fields(List<Item> *list, uint flags)
CHARSET_INFO *cs= system_charset_info;
Send_field field;
item->make_field(&field);
+
+ /* Keep things compatible for old clients */
+ if (field.type == MYSQL_TYPE_VARCHAR)
+ field.type= MYSQL_TYPE_VAR_STRING;
+
prot.prepare_for_resend();
if (thd->client_capabilities & CLIENT_PROTOCOL_41)