summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index bdf52e8ef7b..d9690125b91 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -2932,6 +2932,12 @@ public:
else
limit_rows_examined_cnt= ULONGLONG_MAX;
}
+ inline ulonglong get_limit_rows_examined()
+ {
+ if (limit_rows_examined)
+ return limit_rows_examined->val_uint();
+ return ULONGLONG_MAX;
+ }
SQL_I_List<ORDER> save_group_list;