From 6e0b4c69027769fe14ac732479dd498c7dd7b620 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 11 Jan 2018 09:59:53 +0200 Subject: [PATCH] Adding keywork-column tests --- localtests/keyword-column/create.sql | 13 +++++++++++++ localtests/keyword-column/extra_args | 1 + localtests/keyword-column/ghost_columns | 1 + localtests/keyword-column/orig_columns | 1 + 4 files changed, 16 insertions(+) create mode 100644 localtests/keyword-column/create.sql create mode 100644 localtests/keyword-column/extra_args create mode 100644 localtests/keyword-column/ghost_columns create mode 100644 localtests/keyword-column/orig_columns diff --git a/localtests/keyword-column/create.sql b/localtests/keyword-column/create.sql new file mode 100644 index 0000000..9371238 --- /dev/null +++ b/localtests/keyword-column/create.sql @@ -0,0 +1,13 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + i int not null, + color varchar(32), + primary key(id) +) auto_increment=1; + +drop event if exists gh_ost_test; + +insert into gh_ost_test values (null, 11, 'red'); +insert into gh_ost_test values (null, 13, 'green'); +insert into gh_ost_test values (null, 17, 'blue'); diff --git a/localtests/keyword-column/extra_args b/localtests/keyword-column/extra_args new file mode 100644 index 0000000..5d73843 --- /dev/null +++ b/localtests/keyword-column/extra_args @@ -0,0 +1 @@ +--alter='add column `index` int unsigned' \ diff --git a/localtests/keyword-column/ghost_columns b/localtests/keyword-column/ghost_columns new file mode 100644 index 0000000..f5941f3 --- /dev/null +++ b/localtests/keyword-column/ghost_columns @@ -0,0 +1 @@ +id, i, color diff --git a/localtests/keyword-column/orig_columns b/localtests/keyword-column/orig_columns new file mode 100644 index 0000000..f5941f3 --- /dev/null +++ b/localtests/keyword-column/orig_columns @@ -0,0 +1 @@ +id, i, color