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
dd3434b3
Commit
dd3434b3
authored
Jul 19, 2006
by
sergefp@pylon.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into mysql.com:/home/psergey/mysql-5.1-bug20484-push
parents
1459784a
342283d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+7
-0
mysql-test/t/partition_pruning.test
mysql-test/t/partition_pruning.test
+7
-0
sql/sql_select.cc
sql/sql_select.cc
+3
-0
No files found.
mysql-test/r/partition_pruning.result
View file @
dd3434b3
...
...
@@ -697,3 +697,10 @@ ref NULL
rows 2
Extra
drop table t2;
create table t1 (s1 int);
explain partitions select 1 from t1 union all select 2;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 PRIMARY t1 NULL system NULL NULL NULL NULL 0 const row not found
2 UNION NULL NULL NULL NULL NULL NULL NULL NULL No tables used
NULL UNION RESULT <union1,2> NULL ALL NULL NULL NULL NULL NULL
drop table t1;
mysql-test/t/partition_pruning.test
View file @
dd3434b3
...
...
@@ -590,3 +590,10 @@ explain partitions select * from t2;
--
horizontal_results
drop
table
t2
;
# BUG#20484 "Partitions: crash with explain and union"
create
table
t1
(
s1
int
);
explain
partitions
select
1
from
t1
union
all
select
2
;
drop
table
t1
;
sql/sql_select.cc
View file @
dd3434b3
...
...
@@ -14110,6 +14110,9 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
}
item_list
.
push_back
(
new
Item_string
(
table_name_buffer
,
len
,
cs
));
}
/* partitions */
if
(
join
->
thd
->
lex
->
describe
&
DESCRIBE_PARTITIONS
)
item_list
.
push_back
(
item_null
);
/* type */
item_list
.
push_back
(
new
Item_string
(
join_type_str
[
JT_ALL
],
strlen
(
join_type_str
[
JT_ALL
]),
...
...
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