summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/s3/amazon.test
blob: 3c64cc2841b080c48d4bc165fe07d017ee2b9890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--source include/have_s3.inc

if (`SELECT @@s3_host_name <> "s3.amazonaws.com"`)
{
  skip Not connected to AWS;
}

--source create_database.inc

#
# Check options against amazon
#

set @save_s3_protocol_version=@@global.s3_protocol_version;
set @@global.s3_protocol_version="Original";

create table t1 (pk int primary key, a int);
insert into t1 values (1,1),(2,2),(3,3),(4,4);
--replace_result $database database
alter table t1 engine=S3;
drop table t1;

#
# clean up
#
set @@global.s3_protocol_version=@save_s3_protocol_version;
--source drop_database.inc