From 8b4a32cedda5a2999ff88429ce201dc9454405b9 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Tue, 1 Nov 2016 15:04:14 +0100 Subject: [PATCH] adding tests for latin1 charset column that has utf8 characters --- localtests/utf8-in-latin1/create.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 localtests/utf8-in-latin1/create.sql diff --git a/localtests/utf8-in-latin1/create.sql b/localtests/utf8-in-latin1/create.sql new file mode 100644 index 0000000..a0d7d49 --- /dev/null +++ b/localtests/utf8-in-latin1/create.sql @@ -0,0 +1,20 @@ +drop table if exists gh_ost_test; +create table gh_ost_test ( + id int auto_increment, + t varchar(128) charset latin1 collate latin1_swedish_ci, + primary key(id) +) auto_increment=1 charset utf8; + +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 + set names latin1; + insert into gh_ost_test values (null, 'א') ; +end ;;