From dd41d9a4b1b4b0511152aea81920c0eead8873a3 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 3 Jan 2019 11:18:07 +0200 Subject: [PATCH] Testing nullable int --- localtests/bigint-change-nullable/create.sql | 21 ++++++++++++++++++++ localtests/bigint-change-nullable/extra_args | 1 + 2 files changed, 22 insertions(+) create mode 100644 localtests/bigint-change-nullable/create.sql create mode 100644 localtests/bigint-change-nullable/extra_args diff --git a/localtests/bigint-change-nullable/create.sql b/localtests/bigint-change-nullable/create.sql new file mode 100644 index 0000000..f4f0548 --- /dev/null +++ b/localtests/bigint-change-nullable/create.sql @@ -0,0 +1,21 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id bigint auto_increment, + val bigint not null, + primary key(id) +) auto_increment=1; + +drop event if exists gh_ost_test; +delimiter ;; +create event gh_ost_test + on schedule every 1 second + starts current_timestamp + ends current_timestamp + interval 60 second + on completion not preserve + enable + do +begin + insert into gh_ost_test values (null, 18446744073709551615); + insert into gh_ost_test values (null, 18446744073709551614); + insert into gh_ost_test values (null, 18446744073709551613); +end ;; diff --git a/localtests/bigint-change-nullable/extra_args b/localtests/bigint-change-nullable/extra_args new file mode 100644 index 0000000..784d522 --- /dev/null +++ b/localtests/bigint-change-nullable/extra_args @@ -0,0 +1 @@ +--alter="change val val bigint"