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
aa3cebe1
Commit
aa3cebe1
authored
Jun 22, 2006
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-4.1-opt
into rurik.mysql.com:/home/igor/mysql-5.0-opt
parents
98251c62
faa48bf1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
0 deletions
+87
-0
mysql-test/r/ctype_utf8.result
mysql-test/r/ctype_utf8.result
+56
-0
mysql-test/t/ctype_utf8.test
mysql-test/t/ctype_utf8.test
+31
-0
No files found.
mysql-test/r/ctype_utf8.result
View file @
aa3cebe1
...
...
@@ -1225,6 +1225,62 @@ a
Käli Käli 2-4
Käli Käli 2-4
DROP TABLE t1;
SET NAMES latin2;
CREATE TABLE t1 (
id int(11) NOT NULL default '0',
tid int(11) NOT NULL default '0',
val text NOT NULL,
INDEX idx(tid, val(10))
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO t1 VALUES
(40988,72,'VOLN ADSL'),(41009,72,'VOLN ADSL'),
(41032,72,'VOLN ADSL'),(41038,72,'VOLN ADSL'),
(41063,72,'VOLN ADSL'),(41537,72,'VOLN ADSL Office'),
(42141,72,'VOLN ADSL'),(42565,72,'VOLN ADSL Combi'),
(42749,72,'VOLN ADSL'),(44205,72,'VOLN ADSL');
SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
id tid val
40988 72 VOLN ADSL
41009 72 VOLN ADSL
41032 72 VOLN ADSL
41038 72 VOLN ADSL
41063 72 VOLN ADSL
42141 72 VOLN ADSL
42749 72 VOLN ADSL
44205 72 VOLN ADSL
SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLN ADSL';
id tid val
40988 72 VOLN ADSL
41009 72 VOLN ADSL
41032 72 VOLN ADSL
41038 72 VOLN ADSL
41063 72 VOLN ADSL
42141 72 VOLN ADSL
42749 72 VOLN ADSL
44205 72 VOLN ADSL
SELECT * FROM t1 WHERE tid=72 and val LIKE '%VOLN ADSL';
id tid val
40988 72 VOLN ADSL
41009 72 VOLN ADSL
41032 72 VOLN ADSL
41038 72 VOLN ADSL
41063 72 VOLN ADSL
42141 72 VOLN ADSL
42749 72 VOLN ADSL
44205 72 VOLN ADSL
ALTER TABLE t1 DROP KEY idx;
ALTER TABLE t1 ADD KEY idx (tid,val(11));
SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLN ADSL';
id tid val
40988 72 VOLN ADSL
41009 72 VOLN ADSL
41032 72 VOLN ADSL
41038 72 VOLN ADSL
41063 72 VOLN ADSL
42141 72 VOLN ADSL
42749 72 VOLN ADSL
44205 72 VOLN ADSL
DROP TABLE t1;
CREATE TABLE t1(id varchar(20) NOT NULL) DEFAULT CHARSET=utf8;
INSERT INTO t1 VALUES ('xxx'), ('aa'), ('yyy'), ('aa');
SELECT id FROM t1;
...
...
mysql-test/t/ctype_utf8.test
View file @
aa3cebe1
...
...
@@ -995,6 +995,37 @@ ALTER TABLE t1 ADD KEY (a(10));
SELECT
*
FROM
t1
WHERE
a
LIKE
'Käli Käli 2%'
;
DROP
TABLE
t1
;
#
# Bug#18359: LIKE predicate for a 'utf8' text column with a partial index
# (see bug #16674 as well)
#
SET
NAMES
latin2
;
CREATE
TABLE
t1
(
id
int
(
11
)
NOT
NULL
default
'0'
,
tid
int
(
11
)
NOT
NULL
default
'0'
,
val
text
NOT
NULL
,
INDEX
idx
(
tid
,
val
(
10
))
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
;
INSERT
INTO
t1
VALUES
(
40988
,
72
,
'VOLN ADSL'
),(
41009
,
72
,
'VOLN ADSL'
),
(
41032
,
72
,
'VOLN ADSL'
),(
41038
,
72
,
'VOLN ADSL'
),
(
41063
,
72
,
'VOLN ADSL'
),(
41537
,
72
,
'VOLN ADSL Office'
),
(
42141
,
72
,
'VOLN ADSL'
),(
42565
,
72
,
'VOLN ADSL Combi'
),
(
42749
,
72
,
'VOLN ADSL'
),(
44205
,
72
,
'VOLN ADSL'
);
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'VOLNY ADSL'
;
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'VOLN ADSL'
;
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'%VOLN ADSL'
;
ALTER
TABLE
t1
DROP
KEY
idx
;
ALTER
TABLE
t1
ADD
KEY
idx
(
tid
,
val
(
11
));
SELECT
*
FROM
t1
WHERE
tid
=
72
and
val
LIKE
'VOLN ADSL'
;
DROP
TABLE
t1
;
# End of 4.1 tests
#
...
...
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