diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-05-01 14:06:48 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-05-01 14:06:48 +0200 |
commit | d81b662b8c75018f4facd2323558805ee2bc7eb8 (patch) | |
tree | 0dda05c5b8a3bd53672a8949e621e48e46e701c3 /sql/mdl.h | |
parent | 5b6c75ca4d05f6bb6c56179de725831ff009d650 (diff) | |
download | mariadb-git-d81b662b8c75018f4facd2323558805ee2bc7eb8.tar.gz |
Asserting correct database name lettercase in
various places in the code.
Diffstat (limited to 'sql/mdl.h')
-rw-r--r-- | sql/mdl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/mdl.h b/sql/mdl.h index dbd44e8c6ab..47c587eb3be 100644 --- a/sql/mdl.h +++ b/sql/mdl.h @@ -37,6 +37,7 @@ class THD; class MDL_context; class MDL_lock; class MDL_ticket; +bool ok_for_lower_case_names(const char *name); /** @def ENTER_COND(C, M, S, O) @@ -350,6 +351,7 @@ public: NAME_LEN) - m_ptr + 1); m_hash_value= my_hash_sort(&my_charset_bin, (uchar*) m_ptr + 1, m_length - 1); + DBUG_ASSERT(ok_for_lower_case_names(db)); } void mdl_key_init(const MDL_key *rhs) { |