--source include/have_debug.inc
--source include/have_utf16.inc

--echo #
--echo # Start of 10.5 tests
--echo #

--echo #
--echo # MDEV-28366 GLOBAL debug_dbug setting affected by collation_connection=utf16...
--echo #

SET NAMES utf8;
SET collation_connection=utf16le_general_ci;
SET debug_dbug='d,any_random_string';
SELECT @@debug_dbug;
SET debug_dbug=CONCAT('d,', _latin1 0xDF);
SELECT @@debug_dbug;
SELECT HEX(@@debug_dbug);

SET @@debug_dbug=NULL;
SELECT @@debug_dbug;

SET @@debug_dbug=DEFAULT;
SELECT @@debug_dbug;
SET NAMES latin1;

--echo #
--echo # End of 10.5 tests
--echo #
