1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

repetable test replaced with inline function

This commit is contained in:
bell@sanja.is.com.ua
2004-05-04 16:37:04 +03:00
parent 5de8c225e2
commit c2f194f243
2 changed files with 7 additions and 5 deletions

View File

@ -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