summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-12-07 10:10:02 +0400
committerunknown <holyfoot/hf@hfmain.(none)>2007-12-07 10:10:02 +0400
commit54d5afd37132db0e9acb9fd857c92c1d094656ca (patch)
tree9289f46a5ebd5f614a4e6156e05f12b89f4c2ef6 /libmysqld
parentf448c62558cbd74940261e4eb8e67c3347ceb235 (diff)
parent1dd429fd3e372fcbd830a33a23e36557208d63f1 (diff)
downloadmariadb-git-54d5afd37132db0e9acb9fd857c92c1d094656ca.tar.gz
Merge bk@192.168.21.1:mysql-5.1-opt
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.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 28f6d8d354f..2c4f49050b2 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -243,9 +243,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;