summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2004-06-08 18:41:18 +0200
committerunknown <pem@mysql.comhem.se>2004-06-08 18:41:18 +0200
commit54e3909b04691ad96f411413bc6db71a9d2e2233 (patch)
tree03821b1f2e6f2432f551aa2de6d2b0caaa2ecf0a /sql/sp.h
parent8a2b50c4a1744c23e44436020cbc3bbf286311bd (diff)
downloadmariadb-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.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