diff options
author | holyfoot/hf@hfmain.(none) <> | 2007-12-07 09:39:31 +0400 |
---|---|---|
committer | holyfoot/hf@hfmain.(none) <> | 2007-12-07 09:39:31 +0400 |
commit | d26de7bee08c75618ebe12c85c1cffb1cd10c935 (patch) | |
tree | f72d3e03e4a5ebbc3bded247c9528b590f07026c /libmysqld | |
parent | 3628a7af97810ac2ec9b7026331e690980929a2f (diff) | |
parent | 5a6161dea42f73a241dd7068eb6b6b5a2562b74d (diff) | |
download | mariadb-git-d26de7bee08c75618ebe12c85c1cffb1cd10c935.tar.gz |
Merge mysql.com:/home/hf/work/26921/my50-26921
into mysql.com:/home/hf/work/26921/my51-26921
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; |