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
841a2abd
Commit
841a2abd
authored
Oct 19, 2005
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes
parent
e7065d35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
sql/opt_range.cc
sql/opt_range.cc
+1
-1
sql/sql_delete.cc
sql/sql_delete.cc
+1
-3
No files found.
sql/opt_range.cc
View file @
841a2abd
...
...
@@ -1401,7 +1401,7 @@ uint get_index_for_order(TABLE *table, ORDER *order, ha_rows limit)
if
(
!
ord
->
asc
)
return
MAX_KEY
;
for
(
idx
=
0
;
idx
<
table
->
keys
;
idx
++
)
for
(
idx
=
0
;
idx
<
table
->
s
->
keys
;
idx
++
)
{
if
(
!
(
table
->
keys_in_use_for_query
.
is_set
(
idx
)))
continue
;
...
...
sql/sql_delete.cc
View file @
841a2abd
...
...
@@ -147,7 +147,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
{
delete
select
;
free_underlaid_joins
(
thd
,
&
thd
->
lex
->
select_lex
);
DBUG_RETURN
(
-
1
);
// This will force out message
DBUG_RETURN
(
TRUE
);
}
if
(
!
select
&&
limit
!=
HA_POS_ERROR
)
...
...
@@ -166,7 +166,6 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
{
delete
select
;
free_underlaid_joins
(
thd
,
&
thd
->
lex
->
select_lex
);
DBUG_RETURN
(
-
1
);
// This will force out message
}
/*
Filesort has already found and selected the rows we want to delete,
...
...
@@ -175,7 +174,6 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
delete
select
;
free_underlaid_joins
(
thd
,
select_lex
);
select
=
0
;
DBUG_RETURN
(
TRUE
);
}
}
...
...
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