Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
6130a3ad
Commit
6130a3ad
authored
20 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
View field names should be case insensitive
parent
a8e52500
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
mysql-test/r/view.result
mysql-test/r/view.result
+6
-0
mysql-test/t/view.test
mysql-test/t/view.test
+7
-0
sql/sql_base.cc
sql/sql_base.cc
+1
-1
No files found.
mysql-test/r/view.result
View file @
6130a3ad
...
...
@@ -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;
This diff is collapsed.
Click to expand it.
mysql-test/t/view.test
View file @
6130a3ad
...
...
@@ -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
;
This diff is collapsed.
Click to expand it.
sql/sql_base.cc
View file @
6130a3ad
...
...
@@ -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
&&
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment