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
5bc41c8b
Commit
5bc41c8b
authored
Feb 03, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.0
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.0
parents
ac4dacaa
56ca80ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
mysql-test/r/binary.result
mysql-test/r/binary.result
+17
-2
mysql-test/t/binary.test
mysql-test/t/binary.test
+9
-2
No files found.
mysql-test/r/binary.result
View file @
5bc41c8b
...
...
@@ -43,16 +43,31 @@ name
select name from t2 where name between '' and '';
name
drop table t1,t2;
create table t1 (a char(10) not null, b char(10) binary not null,
index (a
));
create table t1 (a char(10) not null, b char(10) binary not null,
key (a), key(b
));
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
select * from t1 where a="hello";
a b
hello hello
select * from t1 where a="hello ";
a b
hello hello
select * from t1
where b
="hello ";
select * from t1
ignore index (a) where a
="hello ";
a b
hello hello
select * from t1 where b="hello";
a b
hello hello
select * from t1 where b="hello ";
a b
hello hello
select * from t1 ignore index (b) where b="hello ";
a b
alter table t1 modify b tinytext not null, drop key b, add key (b(100));
select * from t1 where b="hello ";
a b
select * from t1 ignore index (b) where b="hello ";
a b
hello hello
drop table t1;
create table t1 (b char(8));
insert into t1 values(NULL);
...
...
mysql-test/t/binary.test
View file @
5bc41c8b
...
...
@@ -26,11 +26,18 @@ drop table t1,t2;
# Test of binary and normal strings
#
create
table
t1
(
a
char
(
10
)
not
null
,
b
char
(
10
)
binary
not
null
,
index
(
a
));
create
table
t1
(
a
char
(
10
)
not
null
,
b
char
(
10
)
binary
not
null
,
key
(
a
),
key
(
b
));
insert
into
t1
values
(
"hello "
,
"hello "
),(
"hello2 "
,
"hello2 "
);
select
*
from
t1
where
a
=
"hello"
;
select
*
from
t1
where
a
=
"hello "
;
select
*
from
t1
where
b
=
"hello "
;
select
*
from
t1
ignore
index
(
a
)
where
a
=
"hello "
;
select
*
from
t1
where
b
=
"hello"
;
select
*
from
t1
where
b
=
"hello "
;
select
*
from
t1
ignore
index
(
b
)
where
b
=
"hello "
;
# blob test
alter
table
t1
modify
b
tinytext
not
null
,
drop
key
b
,
add
key
(
b
(
100
));
select
*
from
t1
where
b
=
"hello "
;
select
*
from
t1
ignore
index
(
b
)
where
b
=
"hello "
;
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