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
a237767e
Commit
a237767e
authored
May 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repetable test replaced with inline function
parent
b0fa6f2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
sql/sql_select.cc
sql/sql_select.cc
+2
-5
sql/sql_select.h
sql/sql_select.h
+5
-0
No files found.
sql/sql_select.cc
View file @
a237767e
...
...
@@ -1122,9 +1122,7 @@ JOIN::exec()
if
(
zero_result_cause
)
{
(
void
)
return_zero_rows
(
this
,
result
,
tables_list
,
fields_list
,
do_send_rows
&&
tmp_table_param
.
sum_func_count
!=
0
&&
!
group_list
,
send_row_on_empty_set
(),
select_options
,
zero_result_cause
,
having
,
procedure
,
...
...
@@ -5674,8 +5672,7 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
if
(
!
(
error
=
(
*
end_select
)(
join
,
join_tab
,
0
))
||
error
==
-
3
)
error
=
(
*
end_select
)(
join
,
join_tab
,
1
);
}
else
if
(
join
->
do_send_rows
&&
join
->
tmp_table_param
.
sum_func_count
!=
0
&&
!
join
->
group_list
)
else
if
(
join
->
send_row_on_empty_set
())
error
=
join
->
result
->
send_data
(
*
join
->
fields
);
}
else
...
...
sql/sql_select.h
View file @
a237767e
...
...
@@ -299,6 +299,11 @@ class JOIN :public Sql_alloc
void
join_free
(
bool
full
);
void
clear
();
bool
save_join_tab
();
bool
send_row_on_empty_set
()
{
return
(
do_send_rows
&&
tmp_table_param
.
sum_func_count
!=
0
&&
!
group_list
);
}
};
...
...
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