From 31a3add1b0a1c6882f34072c2dbf90c255be19a8 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Tue, 6 Sep 2016 09:38:41 +0200 Subject: [PATCH] text tests --- localtests/latin1/create.sql | 21 +++++++++++++++++++++ localtests/utf8/create.sql | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 localtests/latin1/create.sql create mode 100644 localtests/utf8/create.sql diff --git a/localtests/latin1/create.sql b/localtests/latin1/create.sql new file mode 100644 index 0000000..7f63ce2 --- /dev/null +++ b/localtests/latin1/create.sql @@ -0,0 +1,21 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + t varchar(128), + primary key(id) +) auto_increment=1 charset latin1 collate latin1_swedish_ci; + +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, md5(rand())); + insert into gh_ost_test values (null, 'novo proprietário'); + insert into gh_ost_test values (null, 'usuário'); +end ;; diff --git a/localtests/utf8/create.sql b/localtests/utf8/create.sql new file mode 100644 index 0000000..1676050 --- /dev/null +++ b/localtests/utf8/create.sql @@ -0,0 +1,21 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + t varchar(128) charset utf8 collate utf8_general_ci, + 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, md5(rand())); + insert into gh_ost_test values (null, 'novo proprietário'); + insert into gh_ost_test values (null, 'usuário'); +end ;;