summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-09-13 16:26:01 +0400
committersergefp@mysql.com <>2004-09-13 16:26:01 +0400
commitca0fc0b4f4a5c990c94474b99dd66900b46ad14d (patch)
tree92a26d6956790dae91a98dbb331355d8b1a63fd0 /sql/handler.h
parent968491409402fe8c6ecba9b6375a44c81694b14a (diff)
parent13fdbc99cf35dbc8a0c148ae206f70110c7f0280 (diff)
downloadmariadb-git-ca0fc0b4f4a5c990c94474b99dd66900b46ad14d.tar.gz
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/dbdata/psergey/mysql-4.1-bug-tina
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index e3a3b25e1cb..0b7e9c04381 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -300,7 +300,15 @@ public:
virtual const key_map *keys_to_use_for_scanning() { return &key_map_empty; }
virtual bool has_transactions(){ return 0;}
virtual uint extra_rec_buf_length() { return 0; }
- virtual ha_rows estimate_number_of_rows() { return records+EXTRA_RECORDS; }
+
+ /*
+ 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)
+ If upper bound is not known, HA_POS_ERROR should be returned as a max
+ possible upper bound.
+ */
+ virtual ha_rows estimate_rows_upper_bound()
+ { return records+EXTRA_RECORDS; }
virtual const char *index_type(uint key_number) { DBUG_ASSERT(0); return "";}