mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into mysql.com:/misc/mysql/31700/50-31700 sql/sql_select.cc: Auto merged
This commit is contained in:
commit
7a39b1289f
2 changed files with 28 additions and 4 deletions
|
|
@ -10347,6 +10347,15 @@ do_select(JOIN *join,List<Item> *fields,TABLE *table,Procedure *procedure)
|
|||
error= (*end_select)(join,join_tab,0);
|
||||
if (error == NESTED_LOOP_OK || error == NESTED_LOOP_QUERY_LIMIT)
|
||||
error= (*end_select)(join,join_tab,1);
|
||||
|
||||
/*
|
||||
If we don't go through evaluate_join_record(), do the counting
|
||||
here. join->send_records is increased on success in end_send(),
|
||||
so we don't touch it here.
|
||||
*/
|
||||
join->examined_rows++;
|
||||
join->thd->row_count++;
|
||||
DBUG_ASSERT(join->examined_rows <= 1);
|
||||
}
|
||||
else if (join->send_row_on_empty_set())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue