diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-14 11:56:13 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-14 11:56:13 +0200 |
commit | 7b8f4c6da07ee84994ae26b95cb56188e4169d39 (patch) | |
tree | 2ddde92ea3ac17c2e2e62b4c4b45395706202f3b /sql/sql_db.cc | |
parent | 5630f0731ab020471108c67e7ae962ba6eaef625 (diff) | |
download | mariadb-git-7b8f4c6da07ee84994ae26b95cb56188e4169d39.tar.gz |
BUG#9455 mysqladmin status crash the server
- Send error to client when mysql_change_db fails.
sql/sql_db.cc:
Added a note to comment for mysql_change_db that it will not send any error to the client.
sql/sql_parse.cc:
Call net_send_error(thd) if mysql_change_db fails.
Remove comments claiming that mysql_change_db sends error the the client.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 1f345a28d2c..3bdd800cd2f 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -1009,6 +1009,9 @@ err: replication slave SQL thread (for that thread, setting of thd->db is done in ::exec_event() methods of log_event.cc). + This function does not send the error message to the client, if that + should be sent to the client, call net_send_error after this function + RETURN VALUES 0 ok 1 error |