summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2004-05-14 16:00:57 +0200
committerpem@mysql.comhem.se <>2004-05-14 16:00:57 +0200
commitec921065357282c8c850a8286297733675e4bf44 (patch)
treed27d078b95ca20c323af435a836f475562c863d0 /sql/opt_range.h
parentbf45960eef96dba7e7a7ffc8c3bfe6627daee2a3 (diff)
downloadmariadb-git-ec921065357282c8c850a8286297733675e4bf44.tar.gz
Post-merge fixes.
Note: One sp.test still fails (prime), and rpl_server_id2.test fails (will be fixed by guilhem ASAP).
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index 3c528719b29..30e0fcd7be5 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -35,7 +35,7 @@
typedef struct st_key_part {
- uint16 key,part,part_length;
+ uint16 key,part, store_length, length;
uint8 null_bit;
Field *field;
Field::imagetype image_type;
@@ -74,6 +74,7 @@ class QUICK_RANGE :public Sql_alloc {
class QUICK_SELECT_I
{
public:
+ bool sorted;
ha_rows records; /* estimate of # of records to be retrieved */
double read_time; /* time to perform this retrieval */
TABLE *head;
@@ -170,6 +171,17 @@ public:
};
+class QUICK_RANGE_SELECT_GEOM: public QUICK_RANGE_SELECT
+{
+public:
+ QUICK_RANGE_SELECT_GEOM(THD *thd, TABLE *table, uint index_arg,
+ bool no_alloc, MEM_ROOT *parent_alloc)
+ :QUICK_RANGE_SELECT(thd, table, index_arg, no_alloc, parent_alloc)
+ {};
+ virtual int get_next();
+};
+
+
/*
QUICK_INDEX_MERGE_SELECT - index_merge access method quick select.