diff options
author | unknown <holyfoot/hf@hfmain.(none)> | 2007-12-07 09:39:31 +0400 |
---|---|---|
committer | unknown <holyfoot/hf@hfmain.(none)> | 2007-12-07 09:39:31 +0400 |
commit | 1dd429fd3e372fcbd830a33a23e36557208d63f1 (patch) | |
tree | f72d3e03e4a5ebbc3bded247c9528b590f07026c /libmysqld | |
parent | b9d8e34925d1be4b6c1c8950217d41456a02c542 (diff) | |
parent | 05fbb233d8e500da274dbd4bcffc134b23cfca13 (diff) | |
download | mariadb-git-1dd429fd3e372fcbd830a33a23e36557208d63f1.tar.gz |
Merge mysql.com:/home/hf/work/26921/my50-26921
into mysql.com:/home/hf/work/26921/my51-26921
libmysqld/lib_sql.cc:
Auto merged
tests/mysql_client_test.c:
Auto merged
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index f5bfe97a38e..72d542b123a 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -242,9 +242,11 @@ static my_bool emb_read_query_result(MYSQL *mysql) mysql->warning_count= res->embedded_info->warning_count; mysql->server_status= res->embedded_info->server_status; mysql->field_count= res->fields; - mysql->fields= res->embedded_info->fields_list; - mysql->affected_rows= res->embedded_info->affected_rows; - mysql->insert_id= res->embedded_info->insert_id; + if (!(mysql->fields= res->embedded_info->fields_list)) + { + mysql->affected_rows= res->embedded_info->affected_rows; + mysql->insert_id= res->embedded_info->insert_id; + } net_clear_error(&mysql->net); mysql->info= 0; |