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
9a02c69f
Commit
9a02c69f
authored
Jul 16, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more pbxt suite fixes
parent
011cbe90
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
37 deletions
+20
-37
mysql-test/suite/pbxt/r/consistent_snapshot.result
mysql-test/suite/pbxt/r/consistent_snapshot.result
+4
-0
mysql-test/suite/pbxt/r/partition_pruning.result
mysql-test/suite/pbxt/r/partition_pruning.result
+2
-2
mysql-test/suite/pbxt/r/range.result
mysql-test/suite/pbxt/r/range.result
+0
-20
mysql-test/suite/pbxt/r/udf.result
mysql-test/suite/pbxt/r/udf.result
+1
-0
mysql-test/suite/pbxt/t/consistent_snapshot.test
mysql-test/suite/pbxt/t/consistent_snapshot.test
+10
-0
mysql-test/suite/pbxt/t/partition_pruning.test
mysql-test/suite/pbxt/t/partition_pruning.test
+2
-0
mysql-test/suite/pbxt/t/range.test
mysql-test/suite/pbxt/t/range.test
+0
-15
mysql-test/suite/pbxt/t/udf.test
mysql-test/suite/pbxt/t/udf.test
+1
-0
No files found.
mysql-test/suite/pbxt/r/consistent_snapshot.result
View file @
9a02c69f
drop table if exists t1;
create table t1 (a int);
insert t1 values (1);
drop table t1;
create table t1 (a int) engine=innodb;
start transaction with consistent snapshot;
insert into t1 values(1);
...
...
@@ -13,3 +16,4 @@ a
1
commit;
drop table t1;
drop database pbxt;
mysql-test/suite/pbxt/r/partition_pruning.result
View file @
9a02c69f
...
...
@@ -533,10 +533,10 @@ Table Op Msg_type Msg_text
test.t2 analyze status OK
explain partitions select * from t2 where b = 4;
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t2 p0,p1,p2,p3,p4 ref b b 5
const
5
1 SIMPLE t2 p0,p1,p2,p3,p4 ref b b 5
#
5
explain extended select * from t2 where b = 6;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t2 ref b b 5 const
5
100.00
1 SIMPLE t2 ref b b 5 const
#
100.00
Warnings:
Note 1003 select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b` from `test`.`t2` where (`test`.`t2`.`b` = 6)
explain partitions select * from t2 where b = 6;
...
...
mysql-test/suite/pbxt/r/range.result
View file @
9a02c69f
...
...
@@ -416,26 +416,6 @@ count(*)
select count(*) from t2;
count(*)
1026
analyze table t1,t2;
Table Op Msg_type Msg_text
test.t1 analyze status OK
test.t2 analyze status OK
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid > 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t1.uid != 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
explain select straight_join * from t1, t2 where t1.uid=t2.uid AND t2.uid != 0;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uid_index uid_index 4 NULL # Using where
1 SIMPLE t2 ref uid_index uid_index 4 test.t1.uid #
select * from t1, t2 where t1.uid=t2.uid AND t1.uid > 0;
id name uid id name uid
1001 A 1 1001 A 1
...
...
mysql-test/suite/pbxt/r/udf.result
View file @
9a02c69f
...
...
@@ -315,6 +315,7 @@ CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
create table t1 (a char);
set GLOBAL query_cache_size=1355776;
reset query cache;
flush status;
select metaphon('MySQL') from t1;
metaphon('MySQL')
show status like "Qcache_hits";
...
...
mysql-test/suite/pbxt/t/consistent_snapshot.test
View file @
9a02c69f
...
...
@@ -4,6 +4,14 @@
drop
table
if
exists
t1
;
--
enable_warnings
#
# workaround for lp:811438
# remove when fixed.
#
create
table
t1
(
a
int
);
insert
t1
values
(
1
);
drop
table
t1
;
connect
(
con1
,
localhost
,
root
,,);
connect
(
con2
,
localhost
,
root
,,);
...
...
@@ -41,3 +49,5 @@ commit;
drop
table
t1
;
# End of 4.1 tests
drop
database
pbxt
;
mysql-test/suite/pbxt/t/partition_pruning.test
View file @
9a02c69f
...
...
@@ -463,7 +463,9 @@ explain partitions select * from t2 where (a = 100 OR a = 900);
explain
partitions
select
*
from
t2
where
(
a
>
100
AND
a
<
600
);
# PBXT: wait for sweeper
analyze
table
t2
;
--
replace_column
9
#
explain
partitions
select
*
from
t2
where
b
=
4
;
--
replace_column
9
#
explain
extended
select
*
from
t2
where
b
=
6
;
explain
partitions
select
*
from
t2
where
b
=
6
;
explain
extended
select
*
from
t2
where
b
in
(
1
,
3
,
5
);
...
...
mysql-test/suite/pbxt/t/range.test
View file @
9a02c69f
...
...
@@ -378,21 +378,6 @@ insert into t2(id, uid, name) select id, uid, name from t1;
select
count
(
*
)
from
t1
;
select
count
(
*
)
from
t2
;
analyze
table
t1
,
t2
;
# This part doesn't make sense for pbxt as the result may vary becasue
# records_in_range() gives same results for t1 and t2.
# Added straight_join to get predictable results
--
replace_column
9
#
explain
select
straight_join
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t1
.
uid
>
0
;
--
replace_column
9
#
explain
select
straight_join
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t2
.
uid
>
0
;
--
replace_column
9
#
explain
select
straight_join
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t1
.
uid
!=
0
;
--
replace_column
9
#
explain
select
straight_join
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t2
.
uid
!=
0
;
select
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t1
.
uid
>
0
;
select
*
from
t1
,
t2
where
t1
.
uid
=
t2
.
uid
AND
t1
.
uid
!=
0
;
...
...
mysql-test/suite/pbxt/t/udf.test
View file @
9a02c69f
...
...
@@ -351,6 +351,7 @@ create table t1 (a char);
set
GLOBAL
query_cache_size
=
1355776
;
reset
query
cache
;
flush
status
;
select
metaphon
(
'MySQL'
)
from
t1
;
show
status
like
"Qcache_hits"
;
...
...
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