diff options
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 38aedbb4193..3ae337c47ed 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -4859,7 +4859,7 @@ end_write(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), DBUG_RETURN(1); // Not a table_is_full error table->uniques=0; // To ensure rows are the same } - if (++join->send_records >= join->tmp_table_param.end_write_records & + if (++join->send_records >= join->tmp_table_param.end_write_records && join->do_send_rows) { if (!(join->select_options & OPTION_FOUND_ROWS)) |