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
c9a2d607
Commit
c9a2d607
authored
Oct 22, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
d23e048c
c6b5d24a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/key.result
mysql-test/r/key.result
+23
-0
mysql-test/t/key.test
mysql-test/t/key.test
+19
-0
No files found.
mysql-test/r/key.result
View file @
c9a2d607
...
...
@@ -267,3 +267,26 @@ select t from t1 where t=0xD0B1D0B1212223D0B1D0B1D0B1D0B1;
t
??!"#????
drop table t1;
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 't1'
CREATE TABLE t1 (
c1 int,
c2 varbinary(240),
UNIQUE KEY (c1),
KEY (c2)
) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1,'\Z\Z\Z\Z');
INSERT INTO t1 VALUES (2,'\Z\Z\Z\Z\Z\Z');
INSERT INTO t1 VALUES (3,'\Z\Z\Z\Z');
select c1 from t1 where c2='\Z\Z\Z\Z';
c1
1
3
DELETE FROM t1 WHERE (c1 = 1);
select c1 from t1 where c2='\Z\Z\Z\Z';
c1
3
DELETE FROM t1 WHERE (c1 = 3);
select c1 from t1 where c2='\Z\Z\Z\Z';
c1
mysql-test/t/key.test
View file @
c9a2d607
...
...
@@ -252,3 +252,22 @@ select c from t1 where c=0xD0B1212223D0B1D0B1D0B1D0B1D0B1;
select
t
from
t1
where
t
=
0xD0B1D0B1212223D0B1D0B1D0B1D0B1
;
drop
table
t1
;
#
# BUG#6151 - myisam index corruption
#
DROP
TABLE
IF
EXISTS
t1
;
CREATE
TABLE
t1
(
c1
int
,
c2
varbinary
(
240
),
UNIQUE
KEY
(
c1
),
KEY
(
c2
)
)
ENGINE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
1
,
'\Z\Z\Z\Z'
);
INSERT
INTO
t1
VALUES
(
2
,
'\Z\Z\Z\Z\Z\Z'
);
INSERT
INTO
t1
VALUES
(
3
,
'\Z\Z\Z\Z'
);
select
c1
from
t1
where
c2
=
'\Z\Z\Z\Z'
;
DELETE
FROM
t1
WHERE
(
c1
=
1
);
select
c1
from
t1
where
c2
=
'\Z\Z\Z\Z'
;
DELETE
FROM
t1
WHERE
(
c1
=
3
);
select
c1
from
t1
where
c2
=
'\Z\Z\Z\Z'
;
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