| 1 |
########################################################### |
| 2 |
# # |
| 3 |
# This test is to verify that there is no assert when # |
| 4 |
# trying to set a collation with an ID > 255 # |
| 5 |
# # |
| 6 |
# Reference: # |
| 7 |
# Bug #28015761:BINLOG CACHE: ASSERTION FAILED: # |
| 8 |
# CHARSET_DATABASE_NUMBER <= 0XFF # |
| 9 |
########################################################### |
| 10 |
|
| 11 |
# The test is binary log format agnostic |
| 12 |
--source include/have_binlog_format_row.inc |
| 13 |
|
| 14 |
# Save the initial session value. |
| 15 |
SET @session_start_value = @@collation_database; |
| 16 |
|
| 17 |
CREATE DATABASE collation_test DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_as_ci; |
| 18 |
|
| 19 |
USE collation_test; |
| 20 |
SET @@session.collation_database='utf8mb4_vi_0900_as_cs'; |
| 21 |
|
| 22 |
# This query should not cause assert. |
| 23 |
|
| 24 |
DROP DATABASE collation_test; |