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
a128f603
Commit
a128f603
authored
Nov 21, 2006
by
gluh@gluh.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt
into mysql.com:/home/gluh/MySQL/Merge/5.1-opt
parents
de088567
ff384091
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+15
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+14
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
mysql-test/r/information_schema.result
View file @
a128f603
...
...
@@ -1329,6 +1329,21 @@ COLUMN_NAME MD5(COLUMN_DEFAULT) LENGTH(COLUMN_DEFAULT) COLUMN_DEFAULT=get_value(
fld1 7cf7a6782be951a1f2464a350da926a5 65532 1
DROP TABLE bug23037;
DROP FUNCTION get_value;
create view v1 as
select table_schema as object_schema,
table_name as object_name,
table_type as object_type
from information_schema.tables
order by object_schema;
explain select * from v1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
2 DERIVED tables ALL NULL NULL NULL NULL 2 Using filesort
explain select * from (select table_name from information_schema.tables) as a;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> system NULL NULL NULL NULL 0 const row not found
2 DERIVED tables ALL NULL NULL NULL NULL 2
drop view v1;
End of 5.0 tests.
select * from information_schema.engines WHERE ENGINE="MyISAM";
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
...
...
mysql-test/t/information_schema.test
View file @
a128f603
...
...
@@ -974,6 +974,20 @@ SELECT COLUMN_NAME, MD5(COLUMN_DEFAULT), LENGTH(COLUMN_DEFAULT), COLUMN_DEFAULT=
DROP
TABLE
bug23037
;
DROP
FUNCTION
get_value
;
#
# Bug#22413: EXPLAIN SELECT FROM view with ORDER BY yield server crash
#
create
view
v1
as
select
table_schema
as
object_schema
,
table_name
as
object_name
,
table_type
as
object_type
from
information_schema
.
tables
order
by
object_schema
;
explain
select
*
from
v1
;
explain
select
*
from
(
select
table_name
from
information_schema
.
tables
)
as
a
;
drop
view
v1
;
--
echo
End
of
5.0
tests
.
#
# Show engines
...
...
sql/sql_select.cc
View file @
a128f603
...
...
@@ -1474,6 +1474,7 @@ JOIN::exec()
curr_join
->
examined_rows
=
0
;
if
((
curr_join
->
select_lex
->
options
&
OPTION_SCHEMA_TABLE
)
&&
!
thd
->
lex
->
describe
&&
get_schema_tables_result
(
curr_join
))
{
DBUG_VOID_RETURN
;
...
...
@@ -12499,6 +12500,7 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
/* Fill schema tables with data before filesort if it's necessary */
if
((
join
->
select_lex
->
options
&
OPTION_SCHEMA_TABLE
)
&&
!
thd
->
lex
->
describe
&&
get_schema_tables_result
(
join
))
goto
err
;
...
...
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