diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-10-09 13:07:46 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-10-09 13:07:46 +0400 |
commit | 3c6ac6694d291dc454af6f9042c9217afd7fff9b (patch) | |
tree | ab9360d4e28c4ecddfccaf927c3f65a93ce683e9 /sql/sql_select.h | |
parent | 161d68759433b0315a6b95209d3db86be411a686 (diff) | |
download | mariadb-git-3c6ac6694d291dc454af6f9042c9217afd7fff9b.tar.gz |
MDEV-3798: EXPLAIN UPDATE/DELETE
- Produce correct #rows for ORDER BY ... LIMIT N queries that take advantage of
ordered index read to read only N rows.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 71760ea76f5..48515042a02 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -1833,7 +1833,8 @@ int print_fake_select_lex_join(select_result_sink *result, bool on_the_fly, SELECT_LEX *select_lex, uint8 select_options); uint get_index_for_order(ORDER *order, TABLE *table, SQL_SELECT *select, - ha_rows limit, bool *need_sort, bool *reverse); + ha_rows limit, ha_rows *scanned_limit, + bool *need_sort, bool *reverse); ORDER *simple_remove_const(ORDER *order, COND *where); bool const_expression_in_where(COND *cond, Item *comp_item, Field *comp_field= NULL, |