MDEV-9014 SHOW TRIGGERS not case sensitive
use table_alias_charset for comparing table names, not files_charset_info
This commit is contained in:
parent
d775ecdd01
commit
56f04e0dfd
@ -63,3 +63,8 @@ CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a= 1;
|
|||||||
RENAME TABLE t1 TO T1;
|
RENAME TABLE t1 TO T1;
|
||||||
ALTER TABLE T1 RENAME t1;
|
ALTER TABLE T1 RENAME t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
create table t1 (a int);
|
||||||
|
create trigger t1_bi before insert on t1 for each row set new.a= 1;
|
||||||
|
show triggers like '%T1%';
|
||||||
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
|
drop table t1;
|
||||||
|
@ -102,3 +102,11 @@ CREATE TRIGGER t1_bi BEFORE INSERT ON t1 FOR EACH ROW SET new.a= 1;
|
|||||||
RENAME TABLE t1 TO T1;
|
RENAME TABLE t1 TO T1;
|
||||||
ALTER TABLE T1 RENAME t1;
|
ALTER TABLE T1 RENAME t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# MDEV-9014 SHOW TRIGGERS not case sensitive
|
||||||
|
#
|
||||||
|
create table t1 (a int);
|
||||||
|
create trigger t1_bi before insert on t1 for each row set new.a= 1;
|
||||||
|
show triggers like '%T1%';
|
||||||
|
drop table t1;
|
||||||
|
@ -5116,7 +5116,7 @@ bool Discovered_table_list::add_table(const char *tname, size_t tlen)
|
|||||||
custom discover_table_names() method, that calls add_table() directly).
|
custom discover_table_names() method, that calls add_table() directly).
|
||||||
Note: avoid comparing the same name twice (here and in add_file).
|
Note: avoid comparing the same name twice (here and in add_file).
|
||||||
*/
|
*/
|
||||||
if (wild && my_wildcmp(files_charset_info, tname, tname + tlen, wild, wend,
|
if (wild && my_wildcmp(table_alias_charset, tname, tname + tlen, wild, wend,
|
||||||
wild_prefix, wild_one, wild_many))
|
wild_prefix, wild_one, wild_many))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user