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
f4b165ae
Commit
f4b165ae
authored
Mar 06, 2003
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make the test more obvious
parent
cd3f3867
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
mysql-test/r/binary.result
mysql-test/r/binary.result
+23
-23
mysql-test/t/binary.test
mysql-test/t/binary.test
+8
-8
No files found.
mysql-test/r/binary.result
View file @
f4b165ae
...
...
@@ -45,30 +45,30 @@ name
drop table t1,t2;
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 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
hello hello
select
concat("-",a,"-",b,"-")
from t1 where a="hello";
concat("-",a,"-",b,"-")
-hello-hello-
select
concat("-",a,"-",b,"-")
from t1 where a="hello ";
concat("-",a,"-",b,"-")
-hello-hello-
select
concat("-",a,"-",b,"-")
from t1 ignore index (a) where a="hello ";
concat("-",a,"-",b,"-")
-hello-hello-
select
concat("-",a,"-",b,"-")
from t1 where b="hello";
concat("-",a,"-",b,"-")
-hello-hello-
select
concat("-",a,"-",b,"-")
from t1 where b="hello ";
concat("-",a,"-",b,"-")
-hello-hello-
select
concat("-",a,"-",b,"-")
from t1 ignore index (b) where b="hello ";
concat("-",a,"-",b,"-")
-hello-hello-
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
select
concat("-",a,"-",b,"-")
from t1 where b="hello ";
concat("-",a,"-",b,"-")
select
concat("-",a,"-",b,"-")
from t1 ignore index (b) where b="hello ";
concat("-",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 @
f4b165ae
...
...
@@ -30,16 +30,16 @@ drop table t1,t2;
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
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 "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
where
a
=
"hello"
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
where
a
=
"hello "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
ignore
index
(
a
)
where
a
=
"hello "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
where
b
=
"hello"
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
where
b
=
"hello "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
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 "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
from
t1
where
b
=
"hello "
;
select
concat
(
"-"
,
a
,
"-"
,
b
,
"-"
)
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