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
06624893
Commit
06624893
authored
Sep 13, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed double procedure deletetion
parent
462dba1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
sql/sql_select.cc
sql/sql_select.cc
+4
-8
No files found.
sql/sql_select.cc
View file @
06624893
...
...
@@ -478,8 +478,7 @@ bool JOIN::test_in_subselect(Item **where)
/*
global select optimisation.
return 0 - success
1 - go out
-1 - go out with cleaning
1 - error
error code saved in field 'error'
*/
int
...
...
@@ -516,11 +515,9 @@ JOIN::optimize()
conds
=
optimize_cond
(
conds
,
&
cond_value
);
if
(
thd
->
net
.
report_error
)
{
// quick abort
delete
procedure
;
error
=
thd
->
is_fatal_error
?
-
1
:
1
;
error
=
1
;
DBUG_PRINT
(
"error"
,(
"Error from optimize_cond"
));
DBUG_RETURN
(
error
);
DBUG_RETURN
(
1
);
}
if
(
cond_value
==
Item
::
COND_FALSE
||
...
...
@@ -543,8 +540,7 @@ JOIN::optimize()
{
if
(
res
>
1
)
{
delete
procedure
;
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
1
);
}
if
(
res
<
0
)
{
...
...
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