diff options
author | bar@bar.myoffice.izhnet.ru <> | 2007-10-24 10:49:46 +0500 |
---|---|---|
committer | bar@bar.myoffice.izhnet.ru <> | 2007-10-24 10:49:46 +0500 |
commit | 811e64de6236e4f0ddf571c6c49517a473a18fc6 (patch) | |
tree | f6aa35c19f9376a046bae6703dc4a975d52b4263 /sql/sql_parse.cc | |
parent | 9732efe7f8970626840cf64628ab75f83eee5523 (diff) | |
parent | afdc9e8200e45eace23de652e171ea8ab32a7041 (diff) | |
download | mariadb-git-811e64de6236e4f0ddf571c6c49517a473a18fc6.tar.gz |
Merge mysql.com:/home/bar/mysql-work/mysql-5.0
into mysql.com:/home/bar/mysql-work/mysql-5.0-rpl-mr
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index a111208cbf9..a4e0bfcd024 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2853,7 +2853,16 @@ mysql_execute_command(THD *thd) if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL)) goto error; pthread_mutex_lock(&LOCK_active_mi); - res = show_master_info(thd,active_mi); + if (active_mi != NULL) + { + res = show_master_info(thd, active_mi); + } + else + { + push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN, 0, + "the master info structure does not exist"); + send_ok(thd); + } pthread_mutex_unlock(&LOCK_active_mi); break; } @@ -3701,6 +3710,13 @@ end_with_restore_list: SELECT_NO_JOIN_CACHE | SELECT_NO_UNLOCK | OPTION_SETUP_TABLES_DONE, del_result, unit, select_lex); + res|= thd->net.report_error; + if (unlikely(res)) + { + /* If we had a another error reported earlier then this will be ignored */ + del_result->send_error(ER_UNKNOWN_ERROR, "Execution of the query failed"); + del_result->abort(); + } delete del_result; } else |