mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-10172: UNION query returns incorrect rows outside conditional evaluation
count duplicate of UNION SELECT separately to awoid influence on lokal LIMIT clause.
This commit is contained in:
@ -1018,7 +1018,8 @@ public:
|
||||
table_map outer_join;
|
||||
/* Bitmap of tables used in the select list items */
|
||||
table_map select_list_used_tables;
|
||||
ha_rows send_records,found_records,examined_rows,row_limit, select_limit;
|
||||
ha_rows send_records, found_records, examined_rows,
|
||||
row_limit, select_limit, duplicate_rows;
|
||||
/**
|
||||
Used to fetch no more than given amount of rows per one
|
||||
fetch operation of server side cursor.
|
||||
@ -1272,7 +1273,7 @@ public:
|
||||
sort_and_group= 0;
|
||||
first_record= 0;
|
||||
do_send_rows= 1;
|
||||
send_records= 0;
|
||||
duplicate_rows= send_records= 0;
|
||||
found_records= 0;
|
||||
fetch_limit= HA_POS_ERROR;
|
||||
examined_rows= 0;
|
||||
|
Reference in New Issue
Block a user