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
9fae3956
Commit
9fae3956
authored
Aug 05, 2002
by
serg@sergbook.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make SEARCH_PREFIX to work with complex (use_coll) charsets, namely latin1_de
parent
1b29ee50
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
myisam/mi_search.c
myisam/mi_search.c
+2
-1
mysql-test/r/ctype_latin1_de.result
mysql-test/r/ctype_latin1_de.result
+4
-1
mysql-test/t/ctype_latin1_de.test
mysql-test/t/ctype_latin1_de.test
+2
-1
No files found.
myisam/mi_search.c
View file @
9fae3956
...
...
@@ -659,7 +659,8 @@ int _mi_compare_text(CHARSET_INFO *charset_info, uchar *a, uint a_length,
#ifdef USE_STRCOLL
if
(
use_strcoll
(
charset_info
))
{
/* QQ: This needs to work with part keys at some point */
if
(
part_key
&&
b_length
<
a_length
)
a_length
=
b_length
;
return
my_strnncoll
(
charset_info
,
a
,
a_length
,
b
,
b_length
);
}
else
...
...
mysql-test/r/ctype_latin1_de.result
View file @
9fae3956
...
...
@@ -192,7 +192,7 @@ strcmp('
select strcmp('u','a'),strcmp('u','');
strcmp('u','a') strcmp('u','')
1 1
create table t1 (a varchar(10), key(a));
create table t1 (a varchar(10), key(a)
, fulltext (a)
);
insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
select * from t1 where a like "abc%";
a
...
...
@@ -204,4 +204,7 @@ test
select * from t1 where a like "te_t";
a
test
select * from t1 where match a against ("te*" in boolean mode)+0;
a
test
drop table t1;
mysql-test/t/ctype_latin1_de.test
View file @
9fae3956
...
...
@@ -38,9 +38,10 @@ select strcmp('u','
# Some other simple tests with the current character set
#
create
table
t1
(
a
varchar
(
10
),
key
(
a
));
create
table
t1
(
a
varchar
(
10
),
key
(
a
)
,
fulltext
(
a
)
);
insert
into
t1
values
(
"a"
),(
"abc"
),(
"abcd"
),(
"hello"
),(
"test"
);
select
*
from
t1
where
a
like
"abc%"
;
select
*
from
t1
where
a
like
"test%"
;
select
*
from
t1
where
a
like
"te_t"
;
select
*
from
t1
where
match
a
against
(
"te*"
in
boolean
mode
)
+
0
;
drop
table
t1
;
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