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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ba1b30ab
Commit
ba1b30ab
authored
Feb 02, 2009
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
auto-merge
parents
337bf31e
a491bcc4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
2 deletions
+37
-2
mysql-test/r/ctype_ldml.result
mysql-test/r/ctype_ldml.result
+19
-0
mysql-test/t/ctype_ldml.test
mysql-test/t/ctype_ldml.test
+16
-0
mysys/charset.c
mysys/charset.c
+2
-2
No files found.
mysql-test/r/ctype_ldml.result
View file @
ba1b30ab
...
@@ -21,6 +21,25 @@ select * from t1 where c1='b';
...
@@ -21,6 +21,25 @@ select * from t1 where c1='b';
c1
c1
a
a
drop table t1;
drop table t1;
CREATE TABLE t1 (
col1 varchar(100) character set utf8 collate utf8_test_ci
);
INSERT INTO t1 (col1) VALUES ('abcd'),('efgh'),('ijkl');
ALTER TABLE t1 ADD FULLTEXT INDEX (col1);
SELECT * FROM t1 where match (col1) against ('abcd');
col1
abcd
SELECT * FROM t1 where match (col1) against ('abcd' IN BOOLEAN MODE);
col1
abcd
ALTER TABLE t1 ADD (col2 varchar(100) character set latin1);
UPDATE t1 SET col2=col1;
SELECT * FROM t1 WHERE col1=col2 ORDER BY col1;
col1 col2
abcd abcd
efgh efgh
ijkl ijkl
DROP TABLE t1;
show collation like 'ucs2_vn_ci';
show collation like 'ucs2_vn_ci';
Collation Charset Id Default Compiled Sortlen
Collation Charset Id Default Compiled Sortlen
ucs2_vn_ci ucs2 242 8
ucs2_vn_ci ucs2 242 8
...
...
mysql-test/t/ctype_ldml.test
View file @
ba1b30ab
...
@@ -21,6 +21,22 @@ insert into t1 values ('a');
...
@@ -21,6 +21,22 @@ insert into t1 values ('a');
select
*
from
t1
where
c1
=
'b'
;
select
*
from
t1
where
c1
=
'b'
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#41084 full-text index added to custom UCA collation not working
#
CREATE
TABLE
t1
(
col1
varchar
(
100
)
character
set
utf8
collate
utf8_test_ci
);
INSERT
INTO
t1
(
col1
)
VALUES
(
'abcd'
),(
'efgh'
),(
'ijkl'
);
ALTER
TABLE
t1
ADD
FULLTEXT
INDEX
(
col1
);
SELECT
*
FROM
t1
where
match
(
col1
)
against
(
'abcd'
);
SELECT
*
FROM
t1
where
match
(
col1
)
against
(
'abcd'
IN
BOOLEAN
MODE
);
ALTER
TABLE
t1
ADD
(
col2
varchar
(
100
)
character
set
latin1
);
UPDATE
t1
SET
col2
=
col1
;
SELECT
*
FROM
t1
WHERE
col1
=
col2
ORDER
BY
col1
;
DROP
TABLE
t1
;
#
#
# Vietnamese experimental collation
# Vietnamese experimental collation
#
#
...
...
mysys/charset.c
View file @
ba1b30ab
...
@@ -212,6 +212,8 @@ copy_uca_collation(CHARSET_INFO *to, CHARSET_INFO *from)
...
@@ -212,6 +212,8 @@ copy_uca_collation(CHARSET_INFO *to, CHARSET_INFO *from)
to
->
max_sort_char
=
from
->
max_sort_char
;
to
->
max_sort_char
=
from
->
max_sort_char
;
to
->
mbminlen
=
from
->
mbminlen
;
to
->
mbminlen
=
from
->
mbminlen
;
to
->
mbmaxlen
=
from
->
mbmaxlen
;
to
->
mbmaxlen
=
from
->
mbmaxlen
;
to
->
state
|=
MY_CS_AVAILABLE
|
MY_CS_LOADED
|
MY_CS_STRNXFRM
|
MY_CS_UNICODE
;
}
}
...
@@ -246,14 +248,12 @@ static int add_collation(CHARSET_INFO *cs)
...
@@ -246,14 +248,12 @@ static int add_collation(CHARSET_INFO *cs)
{
{
#if defined(HAVE_CHARSET_ucs2) && defined(HAVE_UCA_COLLATIONS)
#if defined(HAVE_CHARSET_ucs2) && defined(HAVE_UCA_COLLATIONS)
copy_uca_collation
(
newcs
,
&
my_charset_ucs2_unicode_ci
);
copy_uca_collation
(
newcs
,
&
my_charset_ucs2_unicode_ci
);
newcs
->
state
|=
MY_CS_AVAILABLE
|
MY_CS_LOADED
;
#endif
#endif
}
}
else
if
(
!
strcmp
(
cs
->
csname
,
"utf8"
))
else
if
(
!
strcmp
(
cs
->
csname
,
"utf8"
))
{
{
#if defined (HAVE_CHARSET_utf8) && defined(HAVE_UCA_COLLATIONS)
#if defined (HAVE_CHARSET_utf8) && defined(HAVE_UCA_COLLATIONS)
copy_uca_collation
(
newcs
,
&
my_charset_utf8_unicode_ci
);
copy_uca_collation
(
newcs
,
&
my_charset_utf8_unicode_ci
);
newcs
->
state
|=
MY_CS_AVAILABLE
|
MY_CS_LOADED
;
#endif
#endif
}
}
else
else
...
...
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