summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2015-09-23 17:27:18 +0200
committerAndrey Hristov <andrey@php.net>2015-09-23 18:38:29 +0200
commit003b764a49fc141834fa75a962d82fa7716503d2 (patch)
tree5bc96063c37a3940d5385d7d8c12cde03ce8735f /ext/mysqlnd/mysqlnd.c
parentbccac3774bade617d88da45e7f1781151bb16160 (diff)
downloadphp-git-003b764a49fc141834fa75a962d82fa7716503d2.tar.gz
Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the server
Diffstat (limited to 'ext/mysqlnd/mysqlnd.c')
-rw-r--r--ext/mysqlnd/mysqlnd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 1a1882cdd7..ad57c6c350 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2212,6 +2212,8 @@ MYSQLND_METHOD(mysqlnd_conn_data, next_result)(MYSQLND_CONN_DATA * const conn)
PHPAPI const char *mysqlnd_field_type_name(enum mysqlnd_field_types field_type)
{
switch(field_type) {
+ case FIELD_TYPE_JSON:
+ return "json";
case FIELD_TYPE_STRING:
case FIELD_TYPE_VAR_STRING:
return "string";