diff options
author | unknown <pem@mysql.comhem.se> | 2004-06-08 18:41:18 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-06-08 18:41:18 +0200 |
commit | 54e3909b04691ad96f411413bc6db71a9d2e2233 (patch) | |
tree | 03821b1f2e6f2432f551aa2de6d2b0caaa2ecf0a /sql/sp.h | |
parent | 8a2b50c4a1744c23e44436020cbc3bbf286311bd (diff) | |
download | mariadb-git-54e3909b04691ad96f411413bc6db71a9d2e2233.tar.gz |
Fixed proper restoring of current db on errors.
This fixes part of BUG#3229: Stored procedure comment causes packets out of order.
sql/sp.cc:
Fixed proper restoring of current db on errors.
sql/sp.h:
Fixed proper restoring of current db on errors.
sql/sp_head.cc:
Fixed proper restoring of current db on errors.
Diffstat (limited to 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -93,9 +93,10 @@ sp_cache_functions(THD *thd, LEX *lex); // Do a "use newdb". The current db is stored at olddb. // If newdb is the same as the current one, nothing is changed. +// dbchangedp is set to true if the db was actually changed. int sp_use_new_db(THD *thd, char *newdb, char *olddb, uint olddbmax, - bool no_access_check); + bool no_access_check, bool *dbchangedp); // Like mysql_change_db() but handles empty db name and the send_ok() problem. int |