mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
View field names should be case insensitive
This commit is contained in:
parent
f8a0287fac
commit
994c1fd4d8
3 changed files with 14 additions and 1 deletions
|
@ -1724,3 +1724,9 @@ a b
|
|||
301 0
|
||||
drop view v3;
|
||||
drop tables t1,t2;
|
||||
create table t1(f1 int);
|
||||
create view v1 as select f1 from t1;
|
||||
select * from v1 where F1 = 1;
|
||||
f1
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
|
|
@ -1654,3 +1654,10 @@ select * from v3;
|
|||
|
||||
drop view v3;
|
||||
drop tables t1,t2;
|
||||
|
||||
# View field names should be case insensitive
|
||||
create table t1(f1 int);
|
||||
create view v1 as select f1 from t1;
|
||||
select * from v1 where F1 = 1;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
|
|
@ -2120,7 +2120,7 @@ find_field_in_table(THD *thd, TABLE_LIST *table_list,
|
|||
Field_translator *trans= table_list->field_translation;
|
||||
for (uint i= 0; i < num; i ++)
|
||||
{
|
||||
if (strcmp(trans[i].name, name) == 0)
|
||||
if (!my_strcasecmp(system_charset_info, trans[i].name, name))
|
||||
{
|
||||
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
||||
if (check_grants_view &&
|
||||
|
|
Loading…
Reference in a new issue