summaryrefslogtreecommitdiff
path: root/mysql-test/main/ctype_swe7.test
blob: d2f59084342b0b977c41d27839cdb3f721d8ddaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
--echo #
--echo # Start of 10.0 tests
--echo #

SET NAMES swe7;

#
# Test escape sequences.
# This also covers:
# MDEV-6737 Stored routines do now work with swe7: "The table mysql.proc is missing, corrupt, or contains bad data"
# as uses stored functions actively.
#

# Tests will be skipped for the view protocol because the view protocol creates 
# an additional util connection and other statistics data 
# (it is necessary to run the view-protocol not in util session )
--disable_service_connection

let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc

--enable_service_connection

--echo #
--echo # End of 10.0 tests
--echo #


--echo #
--echo # Start of 10.2 tests
--echo #

--echo #
--echo # MDEV-9711 NO PAD Collatons
--echo #
SET character_set_connection=swe7;
let $coll='swe7_swedish_nopad_ci';
let $coll_pad='swe7_swedish_ci';
--source include/ctype_pad_all_engines.inc

let $coll='swe7_nopad_bin';
let $coll_pad='swe7_bin';
--source include/ctype_pad_all_engines.inc

--echo #
--echo # End of 10.2 tests
--echo #


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

--echo #
--echo # MDEV-22043 Special character leads to assertion in my_wc_to_printable_generic on 10.5.2 (debug)
--echo #

SET NAMES swe7;
--error ER_INVALID_CHARACTER_STRING
SELECT `T`;

SET NAMES swe7;
--error ER_INVALID_CHARACTER_STRING
SELECT `龔`;

SET NAMES swe7;
--error ER_PARSE_ERROR
EXECUTE IMMEDIATE _swe7 0x01;


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