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
a2d88511
Commit
a2d88511
authored
Oct 05, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mhansson@bk-internal:/home/bk/mysql-5.0-opt
into dl145s.mysql.com:/data0/mhansson/bug30942/my50-bug30942
parents
ae2956f7
554d405d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+4
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+9
-0
sql/sql_parse.cc
sql/sql_parse.cc
+6
-1
No files found.
mysql-test/r/information_schema.result
View file @
a2d88511
...
...
@@ -1386,3 +1386,7 @@ f7 datetime NO NULL
f8 datetime YES 2006-01-01 00:00:00
drop table t1;
End of 5.0 tests.
show fields from information_schema.table_names;
ERROR 42S02: Unknown table 'table_names' in information_schema
show keys from information_schema.table_names;
ERROR 42S02: Unknown table 'table_names' in information_schema
mysql-test/t/information_schema.test
View file @
a2d88511
...
...
@@ -1089,3 +1089,12 @@ show columns from t1;
drop
table
t1
;
--
echo
End
of
5.0
tests
.
#
# Bug#30079 A check for "hidden" I_S tables is flawed
#
--
error
1109
show
fields
from
information_schema
.
table_names
;
--
error
1109
show
keys
from
information_schema
.
table_names
;
sql/sql_parse.cc
View file @
a2d88511
...
...
@@ -6427,7 +6427,12 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
ST_SCHEMA_TABLE
*
schema_table
=
find_schema_table
(
thd
,
ptr
->
table_name
);
if
(
!
schema_table
||
(
schema_table
->
hidden
&&
lex
->
orig_sql_command
==
SQLCOM_END
))
// not a 'show' command
(
lex
->
orig_sql_command
==
SQLCOM_END
||
// not a 'show' command
/*
this check is used for show columns|keys from I_S hidden table
*/
lex
->
orig_sql_command
==
SQLCOM_SHOW_FIELDS
||
lex
->
orig_sql_command
==
SQLCOM_SHOW_KEYS
)))
{
my_error
(
ER_UNKNOWN_TABLE
,
MYF
(
0
),
ptr
->
table_name
,
INFORMATION_SCHEMA_NAME
.
str
);
...
...
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