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
eb333f9b
Commit
eb333f9b
authored
Dec 26, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge newbox:mysql-5.1-ppruning-r4
into mysql.com:/home/psergey/mysql-5.1-26dec-merge
parents
e6cf611f
01e1d1a0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+1
-0
mysql-test/r/ps.result
mysql-test/r/ps.result
+1
-1
mysql-test/t/partition_pruning.test
mysql-test/t/partition_pruning.test
+1
-0
mysql-test/t/ps.test
mysql-test/t/ps.test
+1
-1
No files found.
mysql-test/r/partition_pruning.result
View file @
eb333f9b
...
@@ -249,6 +249,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
...
@@ -249,6 +249,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
explain partitions select * from t3 where (a=2 or b=1) and (a=4 or b=2) ;
explain partitions select * from t3 where (a=2 or b=1) and (a=4 or b=2) ;
id select_type table partitions type possible_keys key key_len ref rows Extra
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t3 p1_sp2,p3_sp1 ALL NULL NULL NULL NULL 3 Using where
1 SIMPLE t3 p1_sp2,p3_sp1 ALL NULL NULL NULL NULL 3 Using where
drop table t3;
create table t1 (a int) partition by hash(a) partitions 2;
create table t1 (a int) partition by hash(a) partitions 2;
insert into t1 values (1),(2);
insert into t1 values (1),(2);
explain partitions select * from t1 where a is null;
explain partitions select * from t1 where a is null;
...
...
mysql-test/r/ps.result
View file @
eb333f9b
drop table if exists t1,t2;
drop table if exists t1,t2
,t3,t4
;
drop database if exists client_test_db;
drop database if exists client_test_db;
create table t1
create table t1
(
(
...
...
mysql-test/t/partition_pruning.test
View file @
eb333f9b
...
@@ -223,6 +223,7 @@ insert into t3 values (1,1),(2,2),(3,3);
...
@@ -223,6 +223,7 @@ insert into t3 values (1,1),(2,2),(3,3);
explain
partitions
select
*
from
t3
where
a
=
2
or
b
=
1
;
explain
partitions
select
*
from
t3
where
a
=
2
or
b
=
1
;
explain
partitions
select
*
from
t3
where
a
=
4
or
b
=
2
;
explain
partitions
select
*
from
t3
where
a
=
4
or
b
=
2
;
explain
partitions
select
*
from
t3
where
(
a
=
2
or
b
=
1
)
and
(
a
=
4
or
b
=
2
)
;
explain
partitions
select
*
from
t3
where
(
a
=
2
or
b
=
1
)
and
(
a
=
4
or
b
=
2
)
;
drop
table
t3
;
# Test for NULLs
# Test for NULLs
create
table
t1
(
a
int
)
partition
by
hash
(
a
)
partitions
2
;
create
table
t1
(
a
int
)
partition
by
hash
(
a
)
partitions
2
;
...
...
mysql-test/t/ps.test
View file @
eb333f9b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# SQL Syntax for Prepared Statements test
# SQL Syntax for Prepared Statements test
#
#
--
disable_warnings
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
drop
table
if
exists
t1
,
t2
,
t3
,
t4
;
# Avoid wrong warnings if mysql_client_test fails
# Avoid wrong warnings if mysql_client_test fails
drop
database
if
exists
client_test_db
;
drop
database
if
exists
client_test_db
;
...
...
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