mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merged the implementation of MDEV-28 LIMIT ROWS EXAMINED into MariaDB 5.5.
This commit is contained in:
@@ -2568,6 +2568,22 @@ struct LEX: public Query_tables_list
|
||||
into the select_lex.
|
||||
*/
|
||||
table_map used_tables;
|
||||
/**
|
||||
Maximum number of rows and/or keys examined by the query, both read,
|
||||
changed or written. This is the argument of LIMIT ROWS EXAMINED.
|
||||
The limit is represented by two variables - the Item is needed because
|
||||
in case of parameters we have to delay its evaluation until execution.
|
||||
Once evaluated, its value is stored in examined_rows_limit_cnt.
|
||||
*/
|
||||
Item *limit_rows_examined;
|
||||
ulonglong limit_rows_examined_cnt;
|
||||
inline void set_limit_rows_examined()
|
||||
{
|
||||
if (limit_rows_examined)
|
||||
limit_rows_examined_cnt= limit_rows_examined->val_uint();
|
||||
else
|
||||
limit_rows_examined_cnt= ULONGLONG_MAX;
|
||||
}
|
||||
|
||||
LEX();
|
||||
|
||||
|
Reference in New Issue
Block a user