summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2004-06-08 18:41:18 +0200
committerpem@mysql.comhem.se <>2004-06-08 18:41:18 +0200
commite3132d9a7caaf0bbd543c86f087c67edb20957d1 (patch)
tree03821b1f2e6f2432f551aa2de6d2b0caaa2ecf0a /sql/sp.h
parentf87f27915e4158eec85d2a22e2eaf1fe7943beb0 (diff)
downloadmariadb-git-e3132d9a7caaf0bbd543c86f087c67edb20957d1.tar.gz
Fixed proper restoring of current db on errors.
This fixes part of BUG#3229: Stored procedure comment causes packets out of order.
Diffstat (limited to 'sql/sp.h')
-rw-r--r--sql/sp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp.h b/sql/sp.h
index a4fec50aca2..a6f76876f33 100644
--- a/sql/sp.h
+++ b/sql/sp.h
@@ -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