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
184e9cca
Commit
184e9cca
authored
Dec 24, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"like" did not work in some cases with character set big5
parent
21996864
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
1 deletion
+35
-1
mysql-test/include/have_big5.inc
mysql-test/include/have_big5.inc
+4
-0
mysql-test/r/ctype_big5.result
mysql-test/r/ctype_big5.result
+10
-0
mysql-test/r/have_big5.require
mysql-test/r/have_big5.require
+2
-0
mysql-test/t/ctype_big5.test
mysql-test/t/ctype_big5.test
+18
-0
strings/ctype-big5.c
strings/ctype-big5.c
+1
-1
No files found.
mysql-test/include/have_big5.inc
0 → 100644
View file @
184e9cca
--
require
r
/
have_big5
.
require
disable_query_log
;
show
collation
like
"big5_chinese_ci"
;
enable_query_log
;
mysql-test/r/ctype_big5.result
0 → 100644
View file @
184e9cca
drop table if exists t1;
SET NAMES big5;
CREATE TABLE t1 (c CHAR(10) CHARACTER SET big5, KEY(c));
INSERT INTO t1 VALUES ('aaa'),('aaaa'),('aaaaa');
SELECT * FROM t1 WHERE c LIKE 'aaa%';
c
aaa
aaaa
aaaaa
DROP TABLE t1;
mysql-test/r/have_big5.require
0 → 100644
View file @
184e9cca
Collation Charset Id Default Compiled Sortlen
big5_chinese_ci big5 1 Yes Yes 1
mysql-test/t/ctype_big5.test
0 → 100644
View file @
184e9cca
--
source
include
/
have_big5
.
inc
#
# Tests with the big5 character set
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
SET
NAMES
big5
;
#
# Bug 1883: LIKE did not work in some cases with a key.
#
CREATE
TABLE
t1
(
c
CHAR
(
10
)
CHARACTER
SET
big5
,
KEY
(
c
));
INSERT
INTO
t1
VALUES
(
'aaa'
),(
'aaaa'
),(
'aaaaa'
);
SELECT
*
FROM
t1
WHERE
c
LIKE
'aaa%'
;
DROP
TABLE
t1
;
strings/ctype-big5.c
View file @
184e9cca
...
...
@@ -377,7 +377,7 @@ static my_bool my_like_range_big5(CHARSET_INFO *cs __attribute__((unused)),
*
min_length
=
(
uint
)
(
min_str
-
min_org
);
*
max_length
=
res_length
;
do
{
*
min_str
++
=
'
\0
'
;
/* Because if key compression */
*
min_str
++
=
'
'
;
/* Because if key compression */
*
max_str
++
=
max_sort_char
;
}
while
(
min_str
!=
min_end
);
return
0
;
...
...
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