Skip to content

Commit

Permalink
PS-9237 feature: Include support for utf8mb4_0900_ai_ci in MySQL 5.7 …
Browse files Browse the repository at this point in the history
…(SET collation_connection mtr)

https://perconadev.atlassian.net/browse/PS-9237

'main.percona_default_collation_for_utf8mb4_extensions' MTR test case
extended with additional checks for 'SET collation_connection'.
  • Loading branch information
percona-ysorokin committed Oct 21, 2024
1 parent e5dc3bf commit bfc10f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ SET CHARACTER SET DEFAULT;
CREATE TABLE t6(id BIGINT UNSIGNED);
SET CHARACTER SET utf8mb4;
CREATE TABLE t7(id BIGINT UNSIGNED);
SET collation_connection = utf8mb4_general_ci;
CREATE TABLE t8(id BIGINT UNSIGNED);


*** Making sure that binlog events created implicitly via stored procedures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,19 @@ CREATE TABLE t4(id BIGINT UNSIGNED);
SET NAMES utf8mb4 COLLATE utf8mb4_general_ci;
CREATE TABLE t5(id BIGINT UNSIGNED);
# Note that 'SET NAMES utf8mb4 COLLATE utf8mb4_0900_ai_ci' will generate
# character_set_client=45 in the binary log
# character_set_client=255 in the binary log.
SET CHARACTER SET DEFAULT;
CREATE TABLE t6(id BIGINT UNSIGNED);
SET CHARACTER SET utf8mb4;
CREATE TABLE t7(id BIGINT UNSIGNED);
SET collation_connection = utf8mb4_general_ci;
CREATE TABLE t8(id BIGINT UNSIGNED);
# Note that 'SET collation_connection = utf8mb4_0900_ai_ci' will generate
# character_set_client=255 in the binary log.
# Also statements like 'SET collation_connection = utf8mb4' when we try to
# assign a character set name to a collation variable are considered
# syntactically incorrect, so we do not include such checks into the test
# plan.


--echo
Expand Down

0 comments on commit bfc10f2

Please sign in to comment.