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
962c228a
Commit
962c228a
authored
Sep 13, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select send_error cleanup (not everything is fixed)
parent
4a9defa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
sql/sql_select.cc
sql/sql_select.cc
+3
-5
No files found.
sql/sql_select.cc
View file @
962c228a
...
...
@@ -195,9 +195,7 @@ int handle_select(THD *thd, LEX *lex, select_result *result)
/* Don't set res if it's -1 as we may want this later */
DBUG_PRINT
(
"info"
,(
"res: %d report_error: %d"
,
res
,
thd
->
net
.
report_error
));
if
(
thd
->
net
.
report_error
)
res
=
1
;
if
(
res
)
if
(
thd
->
net
.
report_error
||
res
<
0
)
{
result
->
send_error
(
0
,
NullS
);
result
->
abort
();
...
...
@@ -1462,7 +1460,7 @@ JOIN::exec()
}
curr_join
->
having
=
curr_join
->
tmp_having
;
thd
->
proc_info
=
"Sending data"
;
error
=
thd
->
net
.
report_error
||
error
=
thd
->
net
.
report_error
?
-
1
:
do_select
(
curr_join
,
curr_fields_list
,
NULL
,
procedure
);
thd
->
limit_found_rows
=
curr_join
->
send_records
;
thd
->
examined_row_count
=
curr_join
->
examined_rows
;
...
...
@@ -5684,7 +5682,7 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
DBUG_PRINT
(
"error"
,(
"Error: do_select() failed"
));
}
#endif
DBUG_RETURN
(
error
||
join
->
thd
->
net
.
report_error
);
DBUG_RETURN
(
join
->
thd
->
net
.
report_error
?
-
1
:
error
)
}
...
...
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