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
843acacb
Commit
843acacb
authored
Jul 12, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge .result fixes
parent
3a9aabaa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
24 deletions
+36
-24
mysql-test/r/partition_innodb.result
mysql-test/r/partition_innodb.result
+9
-9
mysql-test/r/partition_pruning.result
mysql-test/r/partition_pruning.result
+11
-11
mysql-test/suite/vcol/inc/vcol_view.inc
mysql-test/suite/vcol/inc/vcol_view.inc
+4
-0
mysql-test/suite/vcol/r/vcol_view_innodb.result
mysql-test/suite/vcol/r/vcol_view_innodb.result
+6
-2
mysql-test/suite/vcol/r/vcol_view_myisam.result
mysql-test/suite/vcol/r/vcol_view_myisam.result
+6
-2
No files found.
mysql-test/r/partition_innodb.result
View file @
843acacb
...
...
@@ -22,31 +22,31 @@ insert INTO t1 VALUES (110);
ERROR HY000: Table has no partition for value 110
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 90;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
5
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 90;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
5
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 90;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
5
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 89;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL
3
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 89;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 p90 ALL NULL NULL NULL NULL
3
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 89;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = 100;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 100;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 100;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL
7
Using where
1 SIMPLE t1 ALL NULL NULL NULL NULL
0
Using where
DROP TABLE t1;
#
# Bug#50104: Partitioned table with just 1 partion works with fk
...
...
mysql-test/r/partition_pruning.result
View file @
843acacb
...
...
@@ -270,7 +270,7 @@ a
8
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 7;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
10
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
SELECT * FROM t1 WHERE a > 1;
a
2
...
...
@@ -327,13 +327,13 @@ a
8
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 6;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
10
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
SELECT * FROM t1 WHERE a > 7;
a
8
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 7;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
10
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY)
PARTITION BY RANGE (a) (
...
...
@@ -556,7 +556,7 @@ a
7
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= 6;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
9
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
SELECT * FROM t1 WHERE a > 1;
a
2
...
...
@@ -601,13 +601,13 @@ a
7
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 5;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
9
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
SELECT * FROM t1 WHERE a > 6;
a
7
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > 6;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
9
Using where; Using index
1 SIMPLE t1 max index PRIMARY PRIMARY 4 NULL
3
Using where; Using index
DROP TABLE t1;
# test of RANGE and index
CREATE TABLE t1 (a DATE, KEY(a))
...
...
@@ -757,10 +757,10 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p0001-01-01,p1001-01-01,p2001-01-01 range a a 4 NULL 5 Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL
7
Using where; Using index
1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL
4
Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL
7
Using where; Using index
1 SIMPLE t1 pNULL,p2001-01-01 index a a 4 NULL
4
Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ref a a 4 const 1 Using where; Using index
...
...
@@ -1086,10 +1086,10 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 5 Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a >= '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL
7
Using where; Using index
1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL
4
Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a > '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL
7
Using where; Using index
1 SIMPLE t1 p2001-01-01,pNULL index a a 4 NULL
4
Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a = '1999-02-31';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL ref a a 4 const 1 Using where; Using index
...
...
@@ -1101,7 +1101,7 @@ id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0001-01-01,pNULL,p0000-01-02,p1001-01-01 range a a 4 NULL 4 Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-02' AND '1002-00-00';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 pNULL,p1001-01-01 index a a 4 NULL
7
Using where; Using index
1 SIMPLE t1 pNULL,p1001-01-01 index a a 4 NULL
4
Using where; Using index
EXPLAIN PARTITIONS SELECT * FROM t1 WHERE a BETWEEN '0001-01-01' AND '1001-01-01';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0001-01-01,pNULL,p1001-01-01 range a a 4 NULL 3 Using where; Using index
...
...
mysql-test/suite/vcol/inc/vcol_view.inc
View file @
843acacb
...
...
@@ -69,10 +69,14 @@ create table t1 (a int not null,
insert
into
t1
(
a
)
values
(
1
),
(
2
),
(
3
),
(
4
);
create
view
v1
as
select
b
+
1
from
t1
order
by
1
desc
limit
2
;
select
*
from
v1
;
--
echo
MariaDB
-
5.3
:
the
following
EXPLAIN
produces
incorrect
#rows for table t1.
--
echo
MariaDB
-
5.3
:
this
is
expected
to
go
away
when
FROM
subquery
optimizations
are
pushed
explain
select
*
from
v1
;
drop
view
v1
;
create
view
v1
as
select
c
+
1
from
t1
order
by
1
desc
limit
2
;
select
*
from
v1
;
--
echo
MariaDB
-
5.3
:
the
following
EXPLAIN
produces
incorrect
#rows for table t1.
--
echo
MariaDB
-
5.3
:
this
is
expected
to
go
away
when
FROM
subquery
optimizations
are
pushed
explain
select
*
from
v1
;
drop
view
v1
;
drop
table
t1
;
...
...
mysql-test/suite/vcol/r/vcol_view_innodb.result
View file @
843acacb
...
...
@@ -103,20 +103,24 @@ select * from v1;
b+1
0
-1
MariaDB-5.3: the following EXPLAIN produces incorrect #rows for table t1.
MariaDB-5.3: this is expected to go away when FROM subquery optimizations are pushed
explain select * from v1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
2 DERIVED t1 ALL NULL NULL NULL NULL
4
Using filesort
2 DERIVED t1 ALL NULL NULL NULL NULL
2
Using filesort
drop view v1;
create view v1 as select c+1 from t1 order by 1 desc limit 2;
select * from v1;
c+1
0
-1
MariaDB-5.3: the following EXPLAIN produces incorrect #rows for table t1.
MariaDB-5.3: this is expected to go away when FROM subquery optimizations are pushed
explain select * from v1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
2 DERIVED t1 ALL NULL NULL NULL NULL
4
Using filesort
2 DERIVED t1 ALL NULL NULL NULL NULL
2
Using filesort
drop view v1;
drop table t1;
create table t1 (a int,
...
...
mysql-test/suite/vcol/r/vcol_view_myisam.result
View file @
843acacb
...
...
@@ -103,20 +103,24 @@ select * from v1;
b+1
0
-1
MariaDB-5.3: the following EXPLAIN produces incorrect #rows for table t1.
MariaDB-5.3: this is expected to go away when FROM subquery optimizations are pushed
explain select * from v1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
2 DERIVED t1 ALL NULL NULL NULL NULL
4
Using filesort
2 DERIVED t1 ALL NULL NULL NULL NULL
2
Using filesort
drop view v1;
create view v1 as select c+1 from t1 order by 1 desc limit 2;
select * from v1;
c+1
0
-1
MariaDB-5.3: the following EXPLAIN produces incorrect #rows for table t1.
MariaDB-5.3: this is expected to go away when FROM subquery optimizations are pushed
explain select * from v1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 2
2 DERIVED t1 ALL NULL NULL NULL NULL
4
Using filesort
2 DERIVED t1 ALL NULL NULL NULL NULL
2
Using filesort
drop view v1;
drop table t1;
create table t1 (a int,
...
...
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