summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-05-01 14:06:48 +0200
committerSergei Golubchik <sergii@pisem.net>2014-05-01 14:06:48 +0200
commitd81b662b8c75018f4facd2323558805ee2bc7eb8 (patch)
tree0dda05c5b8a3bd53672a8949e621e48e46e701c3 /sql/sp.cc
parent5b6c75ca4d05f6bb6c56179de725831ff009d650 (diff)
downloadmariadb-git-d81b662b8c75018f4facd2323558805ee2bc7eb8.tar.gz
Asserting correct database name lettercase in
various places in the code.
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 6ad38956cee..188b311ae86 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -1437,6 +1437,8 @@ bool lock_db_routines(THD *thd, char *db)
uchar keybuf[MAX_KEY_LENGTH];
DBUG_ENTER("lock_db_routines");
+ DBUG_ASSERT(ok_for_lower_case_names(db));
+
/*
mysql.proc will be re-opened during deletion, so we can ignore
errors when opening the table here. The error handler is