1 select @@collation_connection;
2 select hex(weight_string(cast(_latin1 0x80 as
char)));
3 select hex(weight_string(cast(_latin1 0x808080 as
char)));
4 select hex(weight_string(cast(_latin1 0x808080 as
char) as
char(2)));
5 select hex(weight_string(cast(_latin1 0x808080 as
char) as
char(3)));
6 select hex(weight_string(cast(_latin1 0x808080 as
char) as
char(5)));
8 # Read 2 characters from the source string (the last character is not used).
9 select hex(weight_string(cast(_latin1 0x808080 as
char), 1, 2, 0xC0));
10 select hex(weight_string(cast(_latin1 0x808080 as
char), 2, 2, 0xC0));
11 select hex(weight_string(cast(_latin1 0x808080 as
char), 3, 2, 0xC0));
12 select hex(weight_string(cast(_latin1 0x808080 as
char), 4, 2, 0xC0));
13 select hex(weight_string(cast(_latin1 0x808080 as
char), 5, 2, 0xC0));
14 select hex(weight_string(cast(_latin1 0x808080 as
char),25, 2, 0xC0));
16 # Read 3 characters from the source string (the entire string is used).
17 select hex(weight_string(cast(_latin1 0x808080 as
char), 1, 3, 0xC0));
18 select hex(weight_string(cast(_latin1 0x808080 as
char), 2, 3, 0xC0));
19 select hex(weight_string(cast(_latin1 0x808080 as
char), 3, 3, 0xC0));
20 select hex(weight_string(cast(_latin1 0x808080 as
char), 4, 3, 0xC0));
21 select hex(weight_string(cast(_latin1 0x808080 as
char), 5, 3, 0xC0));
22 select hex(weight_string(cast(_latin1 0x808080 as
char),25, 3, 0xC0));
24 # Read 4 characters from the source string (extra space is added)
25 select hex(weight_string(cast(_latin1 0x808080 as
char), 1, 4, 0xC0));
26 select hex(weight_string(cast(_latin1 0x808080 as
char), 2, 4, 0xC0));
27 select hex(weight_string(cast(_latin1 0x808080 as
char), 3, 4, 0xC0));
28 select hex(weight_string(cast(_latin1 0x808080 as
char), 4, 4, 0xC0));
29 select hex(weight_string(cast(_latin1 0x808080 as
char), 5, 4, 0xC0));
30 select hex(weight_string(cast(_latin1 0x808080 as
char),25, 4, 0xC0));