diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-05-06 23:22:16 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-05-06 23:22:16 +0200 |
commit | 06d874ba90bec42c17ee1af0103a87d6b50730cd (patch) | |
tree | 80373adb3417a45f5ddb6a0ee58ef7f24db1a540 /mysql-test/suite/perfschema/t/statement_digest_charset.test | |
parent | d74414399d8a5a944b47eff95e0796c56c3428a3 (diff) | |
download | mariadb-git-06d874ba90bec42c17ee1af0103a87d6b50730cd.tar.gz |
perfschema 5.6.10 initial commit.
5.6 files
Diffstat (limited to 'mysql-test/suite/perfschema/t/statement_digest_charset.test')
-rw-r--r-- | mysql-test/suite/perfschema/t/statement_digest_charset.test | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/mysql-test/suite/perfschema/t/statement_digest_charset.test b/mysql-test/suite/perfschema/t/statement_digest_charset.test new file mode 100644 index 00000000000..2ac9797edee --- /dev/null +++ b/mysql-test/suite/perfschema/t/statement_digest_charset.test @@ -0,0 +1,36 @@ +# Test for PERFORMANCE_SCHEMA statement digests +# +# Test statements using different character sets. +# See Bug#13809293 - PERFSCHEMA.DML_ESMS_BY_DIGEST FAILS ON DAILY-TRUNK SPORADICALLY +# +--source include/not_embedded.inc +--source include/have_perfschema.inc + +--disable_warnings +DROP DATABASE IF EXISTS pfs_charset_test; +--enable_warnings +CREATE DATABASE pfs_charset_test; +USE pfs_charset_test; + +# +# CP1251 - 8 bits, max multibyte length = 1 +# +SET NAMES cp1251; +TRUNCATE TABLE performance_schema.events_statements_summary_by_digest; +CREATE TABLE долен_регистър_1251a (s1 INT); +CREATE TABLE ДоЛеН_регистър_1251b (s1 INT, s2 INT); + +# +# UTF8 - 8 bits, max multibyte length = 4 +# +SET NAMES utf8; +CREATE TABLE ДОЛЕН_регистър_утф8 (s1 INT); + +# +# Incorrectly converted statement identifiers will result in a warning. +# +SET NAMES latin1; +SELECT * FROM performance_schema.events_statements_summary_by_digest + WHERE digest_text LIKE 'XXXYYY%' LIMIT 1; + +DROP DATABASE pfs_charset_test; |