From 227f1de193517ba3f2e5e29b8e0b9a436316822d Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Tue, 5 Sep 2017 06:34:26 +0300 Subject: [PATCH] adding tests --- localtests/fail-float-unique-key/create.sql | 11 +++++++++++ localtests/fail-float-unique-key/expect_failure | 1 + localtests/fail-float-unique-key/extra_args | 1 + 3 files changed, 13 insertions(+) create mode 100644 localtests/fail-float-unique-key/create.sql create mode 100644 localtests/fail-float-unique-key/expect_failure create mode 100644 localtests/fail-float-unique-key/extra_args diff --git a/localtests/fail-float-unique-key/create.sql b/localtests/fail-float-unique-key/create.sql new file mode 100644 index 0000000..a20d397 --- /dev/null +++ b/localtests/fail-float-unique-key/create.sql @@ -0,0 +1,11 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + f float, + i int not null, + ts timestamp default current_timestamp, + dt datetime, + key i_idx(i), + unique key f_uidx(f) +) auto_increment=1; + +drop event if exists gh_ost_test; diff --git a/localtests/fail-float-unique-key/expect_failure b/localtests/fail-float-unique-key/expect_failure new file mode 100644 index 0000000..4373a4e --- /dev/null +++ b/localtests/fail-float-unique-key/expect_failure @@ -0,0 +1 @@ +No shared unique key can be found diff --git a/localtests/fail-float-unique-key/extra_args b/localtests/fail-float-unique-key/extra_args new file mode 100644 index 0000000..b13e72c --- /dev/null +++ b/localtests/fail-float-unique-key/extra_args @@ -0,0 +1 @@ +--alter="add column v varchar(32)"