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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9385350f
Commit
9385350f
authored
Mar 03, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-5.0
parents
27f13b17
360f54e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+7
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+9
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-0
No files found.
mysql-test/r/information_schema.result
View file @
9385350f
...
...
@@ -631,3 +631,10 @@ TABLES UPDATE_TIME datetime
TABLES CHECK_TIME datetime
ROUTINES CREATED datetime
ROUTINES LAST_ALTERED datetime
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES A
WHERE NOT EXISTS
(SELECT * FROM INFORMATION_SCHEMA.COLUMNS B
WHERE A.TABLE_SCHEMA = B.TABLE_SCHEMA
AND A.TABLE_NAME = B.TABLE_NAME);
COUNT(*)
0
mysql-test/t/information_schema.test
View file @
9385350f
...
...
@@ -400,3 +400,12 @@ information_schema.columns
where
data_type
=
'longtext'
;
select
table_name
,
column_name
,
data_type
from
information_schema
.
columns
where
data_type
=
'datetime'
;
#
# Bug #8164 subquery with INFORMATION_SCHEMA.COLUMNS, 100 % CPU
#
SELECT
COUNT
(
*
)
FROM
INFORMATION_SCHEMA
.
TABLES
A
WHERE
NOT
EXISTS
(
SELECT
*
FROM
INFORMATION_SCHEMA
.
COLUMNS
B
WHERE
A
.
TABLE_SCHEMA
=
B
.
TABLE_SCHEMA
AND
A
.
TABLE_NAME
=
B
.
TABLE_NAME
);
sql/sql_show.cc
View file @
9385350f
...
...
@@ -1649,6 +1649,10 @@ bool uses_only_table_name_fields(Item *item, TABLE_LIST *table)
strlen
(
item_field
->
field_name
),
0
)))
return
0
;
}
if
(
item
->
type
()
==
Item
::
SUBSELECT_ITEM
&&
!
item
->
const_item
())
return
0
;
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