diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2020-11-23 17:51:46 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2020-11-23 20:55:33 +0530 |
commit | e7559866876d1e2953892c682db9cc5a56571937 (patch) | |
tree | d302b49df18d8e62c0d8faba87a4e9d8650e489b /sql/handler.h | |
parent | 156cb94b4b54ca4cccbe7d6821beb84aa376c187 (diff) | |
parent | 1f4e58d779a4994581c596f444c4736fa2fb4394 (diff) | |
download | mariadb-git-bb-10.5-MDEV-18188.tar.gz |
Merge branch 'mdev-18188' of https://github.com/tliu22/server into 10.5bb-10.5-MDEV-18188
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 41da458aa2a..c0cf1f1abbb 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -3632,6 +3632,12 @@ public: */ virtual int pre_records() { return 0; } virtual ha_rows records() { return stats.records; } + virtual int records2(ha_rows* num_rows) + { + *num_rows = records(); + return 0; + } + /** Return upper bound of current number of records in the table (max. of how many records one will retrieve when doing a full table scan) |