diff options
author | pem@mysql.comhem.se <> | 2004-05-14 16:00:57 +0200 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-05-14 16:00:57 +0200 |
commit | ec921065357282c8c850a8286297733675e4bf44 (patch) | |
tree | d27d078b95ca20c323af435a836f475562c863d0 /sql/opt_range.h | |
parent | bf45960eef96dba7e7a7ffc8c3bfe6627daee2a3 (diff) | |
download | mariadb-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.h | 14 |
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. |