From 06eaf7232e9a920468c0f8d74dcf2fe8b555501c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:24:36 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/include/weight_string_A1A1.inc | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mysql-test/include/weight_string_A1A1.inc (limited to 'mysql-test/include/weight_string_A1A1.inc') diff --git a/mysql-test/include/weight_string_A1A1.inc b/mysql-test/include/weight_string_A1A1.inc new file mode 100644 index 00000000..8a511106 --- /dev/null +++ b/mysql-test/include/weight_string_A1A1.inc @@ -0,0 +1,38 @@ +#enable after fix MDEV-29290 +--disable_view_protocol +select collation(cast(0xA1A1 as char)); +select hex(weight_string(cast(0x6141 as char))); +select hex(weight_string(cast(0xA1A1 as char))); +select hex(weight_string(cast(0xA1A1 as char) as char(1))); +select hex(weight_string(cast(0xA1A1A1A1 as char) as char(1))); +select hex(weight_string(cast(0xA1A1 as char) as char(3))); +select hex(weight_string(cast(0xA1A1A1A1 as char) as char(3))); +select hex(weight_string(cast(0x40A1A1 as char) as char(3))); +select hex(weight_string(cast(0x40A1A1A1A1 as char) as char(3))); +select hex(weight_string(cast(0x40A1A1A1A1A1A1 as char) as char(3))); +select hex(weight_string(cast(0x4040A1A1A1A1A1A1 as char) as char(3))); + +# Read 2 characters from the source string (the last character is not used) +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 2, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 2, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 2, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 2, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 2, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 2, 0xC0)); + +# Read 3 characters from the source string (the entire string is used) +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 3, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 3, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 3, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 3, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 3, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 3, 0xC0)); + +# Read 4 characters from the source string (extra space is added) +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 1, 4, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 2, 4, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 3, 4, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 4, 4, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char), 5, 4, 0xC0)); +select hex(weight_string(cast(0xA1A1A1A1A1A1 as char),25, 4, 0xC0)); +--enable_view_protocol -- cgit v1.2.3