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
df727fbb
Commit
df727fbb
authored
Jun 21, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a fix (bug #4198: Incorrect key file for table).
parent
4680a238
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 @
df727fbb
...
...
@@ -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 @
df727fbb
...
...
@@ -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 @
df727fbb
...
...
@@ -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