summaryrefslogtreecommitdiff
path: root/sql/lock.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/lock.cc
parent5b6c75ca4d05f6bb6c56179de725831ff009d650 (diff)
downloadmariadb-git-d81b662b8c75018f4facd2323558805ee2bc7eb8.tar.gz
Asserting correct database name lettercase in
various places in the code.
Diffstat (limited to 'sql/lock.cc')
-rw-r--r--sql/lock.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/lock.cc b/sql/lock.cc
index 54681d25b0a..d5124ebc0f8 100644
--- a/sql/lock.cc
+++ b/sql/lock.cc
@@ -860,6 +860,8 @@ bool lock_object_name(THD *thd, MDL_key::enum_mdl_namespace mdl_type,
MDL_request schema_request;
MDL_request mdl_request;
+ DBUG_ASSERT(ok_for_lower_case_names(db));
+
if (thd->locked_tables_mode)
{
my_message(ER_LOCK_OR_ACTIVE_TRANSACTION,