mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
perfschema 5.6.10 initial commit.
5.6 files
This commit is contained in:
36
mysql-test/suite/perfschema/t/statement_digest_charset.test
Normal file
36
mysql-test/suite/perfschema/t/statement_digest_charset.test
Normal file
@ -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 <20><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_1251a (s1 INT);
|
||||
CREATE TABLE <20><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_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;
|
Reference in New Issue
Block a user