Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f921ca28
Commit
f921ca28
authored
Oct 21, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/gluh/MySQL/Bugs/5.0.14089
parents
38b2e56d
e8d52711
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+12
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+12
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
No files found.
mysql-test/r/information_schema.result
View file @
f921ca28
...
...
@@ -1013,3 +1013,15 @@ grant all on information_schema.* to 'user1'@'localhost';
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
grant select on information_schema.* to 'user1'@'localhost';
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
use test;
create table t1(id int);
insert into t1(id) values (1);
select 1 from (select 1 from test.t1) a;
1
1
use information_schema;
select 1 from (select 1 from test.t1) a;
1
1
use test;
drop table t1;
mysql-test/t/information_schema.test
View file @
f921ca28
...
...
@@ -715,3 +715,15 @@ select ROUTINE_NAME from routines;
grant
all
on
information_schema
.*
to
'user1'
@
'localhost'
;
--
error
1044
grant
select
on
information_schema
.*
to
'user1'
@
'localhost'
;
#
# Bug#14089 FROM list subquery always fails when information_schema is current database
#
use
test
;
create
table
t1
(
id
int
);
insert
into
t1
(
id
)
values
(
1
);
select
1
from
(
select
1
from
test
.
t1
)
a
;
use
information_schema
;
select
1
from
(
select
1
from
test
.
t1
)
a
;
use
test
;
drop
table
t1
;
sql/sql_parse.cc
View file @
f921ca28
...
...
@@ -6197,8 +6197,8 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
ptr
->
force_index
=
test
(
table_options
&
TL_OPTION_FORCE_INDEX
);
ptr
->
ignore_leaves
=
test
(
table_options
&
TL_OPTION_IGNORE_LEAVES
);
ptr
->
derived
=
table
->
sel
;
if
(
!
my_strcasecmp
(
system_charset_info
,
ptr
->
db
,
information_schema_name
.
str
))
if
(
!
ptr
->
derived
&&
!
my_strcasecmp
(
system_charset_info
,
ptr
->
db
,
information_schema_name
.
str
))
{
ST_SCHEMA_TABLE
*
schema_table
=
find_schema_table
(
thd
,
ptr
->
table_name
);
if
(
!
schema_table
||
...
...
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