Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
30e9dfda
Commit
30e9dfda
authored
Nov 09, 2010
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Postfix for Bug#26474 Add Sinhala script (Sri Lanka) collation to MySQL
parent
21ee1d43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+14
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+9
-0
strings/ctype-uca.c
strings/ctype-uca.c
+1
-1
No files found.
mysql-test/r/ctype_utf8.result
View file @
30e9dfda
...
...
@@ -2040,6 +2040,20 @@ predicted_order hex(utf8_encoding)
100 E0B78AE2808DE0B6BA
101 E0B78AE2808DE0B6BB
DROP TABLE t1;
SET NAMES utf8 COLLATE utf8_sinhala_ci;
CREATE TABLE t1 (s1 VARCHAR(10) COLLATE utf8_sinhala_ci);
INSERT INTO t1 VALUES ('a'),('ae'),('af');
SELECT s1,hex(s1) FROM t1 ORDER BY s1;
s1 hex(s1)
a 61
ae 6165
af 6166
SELECT * FROM t1 ORDER BY s1;
s1
a
ae
af
DROP TABLE t1;
End of 5.4 tests
#
# Start of 5.5 tests
...
...
mysql-test/t/ctype_utf8.test
View file @
30e9dfda
...
...
@@ -1477,6 +1477,15 @@ CREATE TABLE t1 (
INSERT
INTO
t1
VALUES
(
19
,
x
'E0B696'
),
(
30
,
x
'E0B69AE0B798'
),
(
61
,
x
'E0B6AF'
),
(
93
,
x
'E0B799'
),
(
52
,
x
'E0B6A6'
),
(
73
,
x
'E0B6BBE0B78AE2808D'
),
(
3
,
x
'E0B686'
),
(
56
,
x
'E0B6AA'
),
(
55
,
x
'E0B6A9'
),
(
70
,
x
'E0B6B9'
),
(
94
,
x
'E0B79A'
),
(
80
,
x
'E0B785'
),
(
25
,
x
'E0B69AE0B791'
),
(
48
,
x
'E0B6A2'
),
(
13
,
x
'E0B690'
),
(
86
,
x
'E0B793'
),
(
91
,
x
'E0B79F'
),
(
81
,
x
'E0B786'
),
(
79
,
x
'E0B784'
),
(
14
,
x
'E0B691'
),
(
99
,
x
'E0B78A'
),
(
8
,
x
'E0B68B'
),
(
68
,
x
'E0B6B7'
),
(
22
,
x
'E0B69A'
),
(
16
,
x
'E0B693'
),
(
33
,
x
'E0B69AE0B7B3'
),
(
38
,
x
'E0B69AE0B79D'
),
(
21
,
x
'E0B683'
),
(
11
,
x
'E0B68E'
),
(
77
,
x
'E0B782'
),
(
40
,
x
'E0B69AE0B78A'
),
(
101
,
x
'E0B78AE2808DE0B6BB'
),
(
35
,
x
'E0B69AE0B79A'
),
(
1
,
x
'E0B7B4'
),
(
9
,
x
'E0B68C'
),
(
96
,
x
'E0B79C'
),
(
6
,
x
'E0B689'
),
(
95
,
x
'E0B79B'
),
(
88
,
x
'E0B796'
),
(
64
,
x
'E0B6B3'
),
(
26
,
x
'E0B69AE0B792'
),
(
82
,
x
'E0B78F'
),
(
28
,
x
'E0B69AE0B794'
),
(
39
,
x
'E0B69AE0B79E'
),
(
97
,
x
'E0B79D'
),
(
2
,
x
'E0B685'
),
(
75
,
x
'E0B780'
),
(
34
,
x
'E0B69AE0B799'
),
(
69
,
x
'E0B6B8'
),
(
83
,
x
'E0B790'
),
(
18
,
x
'E0B695'
),
(
90
,
x
'E0B7B2'
),
(
17
,
x
'E0B694'
),
(
72
,
x
'E0B6BB'
),
(
66
,
x
'E0B6B5'
),
(
59
,
x
'E0B6AD'
),
(
44
,
x
'E0B69E'
),
(
15
,
x
'E0B692'
),
(
23
,
x
'E0B69AE0B78F'
),
(
65
,
x
'E0B6B4'
),
(
42
,
x
'E0B69C'
),
(
63
,
x
'E0B6B1'
),
(
85
,
x
'E0B792'
),
(
47
,
x
'E0B6A1'
),
(
49
,
x
'E0B6A3'
),
(
92
,
x
'E0B7B3'
),
(
78
,
x
'E0B783'
),
(
36
,
x
'E0B69AE0B79B'
),
(
4
,
x
'E0B687'
),
(
24
,
x
'E0B69AE0B790'
),
(
87
,
x
'E0B794'
),
(
37
,
x
'E0B69AE0B79C'
),
(
32
,
x
'E0B69AE0B79F'
),
(
29
,
x
'E0B69AE0B796'
),
(
43
,
x
'E0B69D'
),
(
62
,
x
'E0B6B0'
),
(
100
,
x
'E0B78AE2808DE0B6BA'
),
(
60
,
x
'E0B6AE'
),
(
45
,
x
'E0B69F'
),
(
12
,
x
'E0B68F'
),
(
46
,
x
'E0B6A0'
),
(
50
,
x
'E0B6A5'
),
(
51
,
x
'E0B6A4'
),
(
5
,
x
'E0B688'
),
(
76
,
x
'E0B781'
),
(
89
,
x
'E0B798'
),
(
74
,
x
'E0B6BD'
),
(
10
,
x
'E0B68D'
),
(
57
,
x
'E0B6AB'
),
(
71
,
x
'E0B6BA'
),
(
58
,
x
'E0B6AC'
),
(
27
,
x
'E0B69AE0B793'
),
(
54
,
x
'E0B6A8'
),
(
84
,
x
'E0B791'
),
(
31
,
x
'E0B69AE0B7B2'
),
(
98
,
x
'E0B79E'
),
(
53
,
x
'E0B6A7'
),
(
41
,
x
'E0B69B'
),
(
67
,
x
'E0B6B6'
),
(
7
,
x
'E0B68A'
),
(
20
,
x
'E0B682'
);
SELECT
predicted_order
,
hex
(
utf8_encoding
)
FROM
t1
ORDER
BY
utf8_encoding
COLLATE
utf8_sinhala_ci
;
DROP
TABLE
t1
;
#
# Postfix for Bug#26474
#
SET
NAMES
utf8
COLLATE
utf8_sinhala_ci
;
CREATE
TABLE
t1
(
s1
VARCHAR
(
10
)
COLLATE
utf8_sinhala_ci
);
INSERT
INTO
t1
VALUES
(
'a'
),(
'ae'
),(
'af'
);
SELECT
s1
,
hex
(
s1
)
FROM
t1
ORDER
BY
s1
;
SELECT
*
FROM
t1
ORDER
BY
s1
;
DROP
TABLE
t1
;
--
echo
End
of
5.4
tests
...
...
strings/ctype-uca.c
View file @
30e9dfda
...
...
@@ -9461,7 +9461,7 @@ CHARSET_INFO my_charset_utf8_sinhala_uca_ci=
8
,
/* strxfrm_multiply */
1
,
/* caseup_multiply */
1
,
/* casedn_multiply */
3
,
/* mbminlen */
1
,
/* mbminlen */
3
,
/* mbmaxlen */
9
,
/* min_sort_char */
0xFFFF
,
/* max_sort_char */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment