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
9f6c76eb
Commit
9f6c76eb
authored
Aug 15, 2006
by
bar@mysql.com/bar.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/usr/home/bar/mysql-4.1.b19741
into mysql.com:/usr/home/bar/mysql-5.0.b19741merge
parents
e2d4aa2c
7ff64de1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
mysql-test/r/ctype_cp1250_ch.result
mysql-test/r/ctype_cp1250_ch.result
+8
-0
mysql-test/t/ctype_cp1250_ch.test
mysql-test/t/ctype_cp1250_ch.test
+10
-0
strings/ctype-win1250ch.c
strings/ctype-win1250ch.c
+2
-2
No files found.
mysql-test/r/ctype_cp1250_ch.result
View file @
9f6c76eb
...
...
@@ -42,3 +42,11 @@ id str
6 aaaaaa
7 aaaaaaa
drop table t1;
set names cp1250;
create table t1 (a varchar(15) collate cp1250_czech_cs NOT NULL, primary key(a));
insert into t1 values("abcdefgh");
insert into t1 values("");
select a from t1 where a like "abcdefgh";
a
abcdefgh
drop table t1;
mysql-test/t/ctype_cp1250_ch.test
View file @
9f6c76eb
...
...
@@ -44,4 +44,14 @@ INSERT INTO t1 VALUES (NULL, 'aaaaaaa');
select
*
from
t1
where
str
like
'aa%'
;
drop
table
t1
;
#
# Bug#19741 segfault with cp1250 charset + like + primary key + 64bit os
#
set
names
cp1250
;
create
table
t1
(
a
varchar
(
15
)
collate
cp1250_czech_cs
NOT
NULL
,
primary
key
(
a
));
insert
into
t1
values
(
"abcdefgh"
);
insert
into
t1
values
(
""
);
select
a
from
t1
where
a
like
"abcdefgh"
;
drop
table
t1
;
# End of 4.1 tests
strings/ctype-win1250ch.c
View file @
9f6c76eb
...
...
@@ -636,11 +636,11 @@ my_like_range_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
ptr
++
;
/* Skip escape */
else
if
(
*
ptr
==
w_one
||
*
ptr
==
w_many
)
/* '_' or '%' in SQL */
break
;
*
min_str
=
like_range_prefix_min_win1250ch
[(
uint
)
(
*
ptr
)];
*
min_str
=
like_range_prefix_min_win1250ch
[(
uint
)
(
uchar
)
(
*
ptr
)];
if
(
*
min_str
!=
min_sort_char
)
only_min_found
=
0
;
min_str
++
;
*
max_str
++=
like_range_prefix_max_win1250ch
[(
uint
)(
*
ptr
)];
*
max_str
++=
like_range_prefix_max_win1250ch
[(
uint
)
(
uchar
)
(
*
ptr
)];
}
if
(
cs
->
state
&
MY_CS_BINSORT
)
...
...
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