| 1 |
--source include/have_s3.inc |
| 2 |
|
| 3 |
if (`SELECT @@s3_host_name NOT LIKE "%.amazonaws.com"`) |
| 4 |
{ |
| 5 |
skip Not connected to AWS; |
| 6 |
} |
| 7 |
|
| 8 |
--source create_database.inc |
| 9 |
|
| 10 |
# |
| 11 |
# Check options against amazon |
| 12 |
# |
| 13 |
|
| 14 |
set @save_s3_protocol_version=@@global.s3_protocol_version; |
| 15 |
set @@global.s3_protocol_version="Original"; |
| 16 |
|
| 17 |
create table t1 (pk int primary key, a int); |
| 18 |
insert into t1 values (1,1),(2,2),(3,3),(4,4); |
| 19 |
--replace_result $database database |
| 20 |
alter table t1 engine=S3; |
| 21 |
drop table t1; |
| 22 |
|
| 23 |
set @@global.s3_protocol_version="Amazon"; |
| 24 |
|
| 25 |
create table t1 (pk int primary key, a int); |
| 26 |
insert into t1 values (1,1),(2,2),(3,3),(4,4); |
| 27 |
--replace_result $database database |
| 28 |
alter table t1 engine=S3; |
| 29 |
drop table t1; |
| 30 |
|
| 31 |
set @@global.s3_protocol_version="Domain"; |
| 32 |
|
| 33 |
create table t1 (pk int primary key, a int); |
| 34 |
insert into t1 values (1,1),(2,2),(3,3),(4,4); |
| 35 |
--replace_result $database database |
| 36 |
alter table t1 engine=S3; |
| 37 |
drop table t1; |
| 38 |
|
| 39 |
# |
| 40 |
# clean up |
| 41 |
# |
| 42 |
set @@global.s3_protocol_version=@save_s3_protocol_version; |
| 43 |
--source drop_database.inc |