From b7eacbb75fdb043f9917fb4368e50b947dd1fb34 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 8 Mar 2018 07:21:50 +0200 Subject: [PATCH] testing gbk charset --- localtests/gbk-charset/create.sql | 24 ++++++++++++++++++++++++ localtests/gbk-charset/extra_args | 0 2 files changed, 24 insertions(+) create mode 100644 localtests/gbk-charset/create.sql create mode 100644 localtests/gbk-charset/extra_args diff --git a/localtests/gbk-charset/create.sql b/localtests/gbk-charset/create.sql new file mode 100644 index 0000000..e58e4fe --- /dev/null +++ b/localtests/gbk-charset/create.sql @@ -0,0 +1,24 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int(11) NOT NULL AUTO_INCREMENT, + name varchar(512) DEFAULT NULL, + v varchar(255) DEFAULT NULL COMMENT '添加普通列测试', + PRIMARY KEY (id) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=gbk; + +insert into gh_ost_test values (null, 'gbk-test-initial', '添加普通列测试-添加普通列测试'); +insert into gh_ost_test values (null, 'gbk-test-initial', '添加普通列测试-添加普通列测试'); + +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 (name) values ('gbk-test-default'); + insert into gh_ost_test values (null, 'gbk-test', '添加普通列测试-添加普通列测试'); +end ;; diff --git a/localtests/gbk-charset/extra_args b/localtests/gbk-charset/extra_args new file mode 100644 index 0000000..e69de29