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
3ecbee7c
Commit
3ecbee7c
authored
Dec 22, 2008
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adde new tests for maria and partitioning
parent
86fcfb15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
mysql-test/suite/maria/r/maria-partitioning.result
mysql-test/suite/maria/r/maria-partitioning.result
+30
-0
mysql-test/suite/maria/t/maria-partitioning.test
mysql-test/suite/maria/t/maria-partitioning.test
+42
-0
No files found.
mysql-test/suite/maria/r/maria-partitioning.result
0 → 100644
View file @
3ecbee7c
set global storage_engine=maria;
set session storage_engine=maria;
DROP TABLE if exists t1,t2;
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
create table t2(a blob) engine=maria;
create table t1(a int primary key) engine=maria;
insert into t2 values ('foo'),('bar');
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
insert into t1 values (1);
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
insert into t1 values (2);
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
drop table t1,t2;
create table t2(a blob) engine= maria;
create table t1(a int primary key) engine= maria PARTITION BY HASH (a) PARTITIONS 2;
insert into t2 values ('foo'),('bar');
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
insert into t1 values (1);
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
insert into t1 values (2);
select * from t2 left join t1 on (t2.a=t1.a) where t2.a='bbb';
a a
drop table t1,t2;
mysql-test/suite/maria/t/maria-partitioning.test
0 → 100644
View file @
3ecbee7c
#
# Testing of potential problems in Maria with partitioning
#
--
source
include
/
have_maria
.
inc
--
source
include
/
have_partition
.
inc
let
$default_engine
=
`select @@global.storage_engine`
;
let
$default_checksum
=
`select @@global.maria_page_checksum`
;
set
global
storage_engine
=
maria
;
set
session
storage_engine
=
maria
;
#
# Test outer join const propagation
#
DROP
TABLE
if
exists
t1
,
t2
;
create
table
t2
(
a
blob
)
engine
=
maria
;
create
table
t1
(
a
int
primary
key
)
engine
=
maria
;
insert
into
t2
values
(
'foo'
),(
'bar'
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
insert
into
t1
values
(
1
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
insert
into
t1
values
(
2
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
drop
table
t1
,
t2
;
create
table
t2
(
a
blob
)
engine
=
maria
;
create
table
t1
(
a
int
primary
key
)
engine
=
maria
PARTITION
BY
HASH
(
a
)
PARTITIONS
2
;
insert
into
t2
values
(
'foo'
),(
'bar'
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
insert
into
t1
values
(
1
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
insert
into
t1
values
(
2
);
select
*
from
t2
left
join
t1
on
(
t2
.
a
=
t1
.
a
)
where
t2
.
a
=
'bbb'
;
drop
table
t1
,
t2
;
# Set defaults back
--
disable_result_log
--
disable_query_log
eval
set
global
storage_engine
=
$default_engine
;
--
enable_result_log
--
enable_query_log
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