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
6e0fb8f6
Commit
6e0fb8f6
authored
Jun 21, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a fix (bug #4198: Incorrect key file for table).
parent
b99ac15c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
mysql-test/r/delete.result
mysql-test/r/delete.result
+10
-0
mysql-test/t/delete.test
mysql-test/t/delete.test
+11
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-1
No files found.
mysql-test/r/delete.result
View file @
6e0fb8f6
...
...
@@ -120,3 +120,13 @@ a b
0 10
1 11
drop table t11, t12, t2;
create table t1 (a int, b int, unique key (a), key (b));
insert into t1 values (3, 3), (7, 7);
delete t1 from t1 where a = 3;
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
select * from t1;
a b
7 7
drop table t1;
mysql-test/t/delete.test
View file @
6e0fb8f6
...
...
@@ -98,3 +98,14 @@ select * from t11;
delete
ignore
from
t11
where
t11
.
b
<>
(
select
b
from
t2
where
t11
.
a
<
t2
.
a
);
select
*
from
t11
;
drop
table
t11
,
t12
,
t2
;
#
# Bug #4198: deletion and KEYREAD
#
create
table
t1
(
a
int
,
b
int
,
unique
key
(
a
),
key
(
b
));
insert
into
t1
values
(
3
,
3
),
(
7
,
7
);
delete
t1
from
t1
where
a
=
3
;
check
table
t1
;
select
*
from
t1
;
drop
table
t1
;
sql/sql_select.cc
View file @
6e0fb8f6
...
...
@@ -5972,7 +5972,8 @@ join_read_const_table(JOIN_TAB *tab, POSITION *pos)
else
{
if
(
!
table
->
key_read
&&
table
->
used_keys
.
is_set
(
tab
->
ref
.
key
)
&&
!
table
->
no_keyread
)
!
table
->
no_keyread
&&
(
int
)
table
->
reginfo
.
lock_type
<=
(
int
)
TL_READ_HIGH_PRIORITY
)
{
table
->
key_read
=
1
;
table
->
file
->
extra
(
HA_EXTRA_KEYREAD
);
...
...
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