summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-04-08 13:58:06 +0300
committermonty@mysql.com <>2004-04-08 13:58:06 +0300
commit43546e7a82197461953f81f8c7a354f895ab3b56 (patch)
treea2db2fbae50b0568aeaf80c5eb2dbb8027359da4 /sql/opt_range.h
parente94d935221b67fe07ee0a3a9276ad1d37118bdda (diff)
downloadmariadb-git-43546e7a82197461953f81f8c7a354f895ab3b56.tar.gz
Moved reading of ranges from opt_range.cc to handler.cc
This gives the handler more optimization possiblities and is needed for NDB cluster Fixed not-initialized memory error detected by valgrind
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index 4af56393a57..2df9d93e1ef 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -89,11 +89,20 @@ public:
int init() { return error=file->index_init(index); }
virtual int get_next();
virtual bool reverse_sorted() { return 0; }
- int cmp_next(QUICK_RANGE *range);
bool unique_key_range();
};
+class QUICK_SELECT_GEOM: public QUICK_SELECT
+{
+public:
+ QUICK_SELECT_GEOM(THD *thd, TABLE *table, uint index_arg, bool no_alloc)
+ :QUICK_SELECT(thd, table, index_arg, no_alloc)
+ {};
+ virtual int get_next();
+};
+
+
class QUICK_SELECT_DESC: public QUICK_SELECT
{
public: