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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6aebaafe
Commit
6aebaafe
authored
Jun 24, 2019
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added S3 test case with InnoDB
parent
c62eaa7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
mysql-test/suite/s3/innodb.result
mysql-test/suite/s3/innodb.result
+31
-0
mysql-test/suite/s3/innodb.test
mysql-test/suite/s3/innodb.test
+35
-0
No files found.
mysql-test/suite/s3/innodb.result
0 → 100644
View file @
6aebaafe
drop table if exists t1,t2,t3;
#
# Test ALTER TABLE to and from s3
#
create table t1 (a int, b int) engine=innodb;
insert into t1 select seq,seq+10 from seq_1_to_1000;
alter table t1 engine=s3;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL
) ENGINE=S3 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1
alter table t1 comment="hello";
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL
) ENGINE=S3 DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1 COMMENT='hello'
alter table t1 engine=innodb;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 PAGE_CHECKSUM=1 COMMENT='hello'
select count(*), sum(a), sum(b) from t1;
count(*) sum(a) sum(b)
1000 500500 510500
drop table t1;
mysql-test/suite/s3/innodb.test
0 → 100644
View file @
6aebaafe
--
source
include
/
have_s3
.
inc
--
source
include
/
have_sequence
.
inc
--
source
include
/
have_innodb
.
inc
#
# Testing converting InnoDB tables to S3
#
#
# Create unique database for running the tests
#
--
source
create_database
.
inc
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
;
--
enable_warnings
--
echo
#
--
echo
# Test ALTER TABLE to and from s3
--
echo
#
create
table
t1
(
a
int
,
b
int
)
engine
=
innodb
;
insert
into
t1
select
seq
,
seq
+
10
from
seq_1_to_1000
;
alter
table
t1
engine
=
s3
;
show
create
table
t1
;
alter
table
t1
comment
=
"hello"
;
show
create
table
t1
;
alter
table
t1
engine
=
innodb
;
show
create
table
t1
;
select
count
(
*
),
sum
(
a
),
sum
(
b
)
from
t1
;
drop
table
t1
;
#
# clean up
#
--
source
drop_database
.
inc
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