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
68c5b544
Commit
68c5b544
authored
Jun 25, 2010
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1-bugteam->trunk-merge merge
parents
18fa8946
2a86768e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+10
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+9
-0
sql/sql_show.cc
sql/sql_show.cc
+3
-1
No files found.
mysql-test/r/information_schema.result
View file @
68c5b544
...
...
@@ -1681,6 +1681,16 @@ COUNT(*)
DROP USER nonpriv;
DROP TABLE db1.t1;
DROP DATABASE db1;
Bug#54422 query with = 'variables'
CREATE TABLE variables(f1 INT);
SELECT COLUMN_DEFAULT, TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE INFORMATION_SCHEMA.COLUMNS.TABLE_NAME = 'variables';
COLUMN_DEFAULT TABLE_NAME
NULL variables
DROP TABLE variables;
End of 5.1 tests.
#
# Additional test for WL#3726 "DDL locking for all metadata objects"
...
...
mysql-test/t/information_schema.test
View file @
68c5b544
...
...
@@ -1416,6 +1416,15 @@ DROP USER nonpriv;
DROP
TABLE
db1
.
t1
;
DROP
DATABASE
db1
;
--
echo
--
echo
Bug
#54422 query with = 'variables'
--
echo
CREATE
TABLE
variables
(
f1
INT
);
SELECT
COLUMN_DEFAULT
,
TABLE_NAME
FROM
INFORMATION_SCHEMA
.
COLUMNS
WHERE
INFORMATION_SCHEMA
.
COLUMNS
.
TABLE_NAME
=
'variables'
;
DROP
TABLE
variables
;
--
echo
End
of
5.1
tests
.
...
...
sql/sql_show.cc
View file @
68c5b544
...
...
@@ -2857,7 +2857,9 @@ make_table_name_list(THD *thd, List<LEX_STRING> *table_names, LEX *lex,
{
if
(
with_i_schema
)
{
if
(
find_schema_table
(
thd
,
lookup_field_vals
->
table_value
.
str
))
ST_SCHEMA_TABLE
*
schema_table
=
find_schema_table
(
thd
,
lookup_field_vals
->
table_value
.
str
);
if
(
schema_table
&&
!
schema_table
->
hidden
)
{
if
(
table_names
->
push_back
(
&
lookup_field_vals
->
table_value
))
return
1
;
...
...
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