diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-03-29 11:33:25 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-03-29 11:33:25 +0100 |
commit | 0643d1f3191a387cf99e7c505dde7b829ce2b03d (patch) | |
tree | b2ac2af19b6f7c90feb0299b1df57ea81ebbdc6c /sql/sp_head.h | |
parent | 73f48615754833e637ba05d2a0d92a0ea5c2d5cf (diff) | |
download | mariadb-git-0643d1f3191a387cf99e7c505dde7b829ce2b03d.tar.gz |
another post-fix patch for MDEV-5850: MySQL Bug#21317: SHOW CREATE DATABASE does not obey to lower_case_table_names
(for case-insensitive filesystems)
sql/events.cc:
for "SHOW EVENTS IN db_name"
sql/sp_head.h:
for "CREATE EVENT", and everything SP-related
sql/sql_acl.cc:
privilege check for mysql_change_db()
sql/sql_db.cc:
for metadata locking of db names
sql/sql_parse.cc:
any_db is a constant, it is not writable
sql/sql_show.cc:
for SHOW CREATE TRIGGER and other trigger-related statements
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index c1fb455e103..cc598186d08 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -122,6 +122,8 @@ public: sp_name(LEX_STRING db, LEX_STRING name, bool use_explicit_name) : m_db(db), m_name(name), m_explicit_name(use_explicit_name) { + if (lower_case_table_names && m_db.str) + m_db.length= my_casedn_str(files_charset_info, m_db.str); m_qname.str= 0; m_qname.length= 0; } |