diff options
author | unknown <serg@serg.mysql.com> | 2001-11-22 16:00:11 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-11-22 16:00:11 +0100 |
commit | 198df9007eaaf1aacbdff6c3e6b438bfd013a66c (patch) | |
tree | d6f7c3326335cf1432cad86e47e88950fca45ec9 /sql | |
parent | 1bdd19639d583cf182731c82eef08a21d2751f5c (diff) | |
download | mariadb-git-198df9007eaaf1aacbdff6c3e6b438bfd013a66c.tar.gz |
fixes for ft-boolean and range optimizer
Diffstat (limited to 'sql')
-rw-r--r-- | sql/opt_ft.h | 2 | ||||
-rw-r--r-- | sql/opt_range.cc | 5 | ||||
-rw-r--r-- | sql/opt_range.h | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/sql/opt_ft.h b/sql/opt_ft.h index dcbbb8abcec..b055edc107c 100644 --- a/sql/opt_ft.h +++ b/sql/opt_ft.h @@ -29,7 +29,7 @@ public: TABLE_REF *ref; FT_SELECT(TABLE *table, TABLE_REF *tref) : - QUICK_SELECT (table,tref->key,1), ref(tref) {} + QUICK_SELECT (table,tref->key,1), ref(tref) { init(); } int init() { return error=file->ft_init(); } int get_next() { return error=file->ft_read(record); } diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 3849159ca39..4c22dc5b6a2 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -407,11 +407,6 @@ QUICK_SELECT::~QUICK_SELECT() } } -int QUICK_SELECT::init() -{ - return error=file->index_init(index); -} - QUICK_RANGE::QUICK_RANGE() :min_key(0),max_key(0),min_length(0),max_length(0), flag(NO_MIN_RANGE | NO_MAX_RANGE) diff --git a/sql/opt_range.h b/sql/opt_range.h index 50215b94be0..07d1216a42f 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -75,7 +75,7 @@ public: QUICK_SELECT(TABLE *table,uint index_arg,bool no_alloc=0); virtual ~QUICK_SELECT(); void reset(void) { next=0; it.rewind(); } - virtual int init(); + int init() { return error=file->index_init(index); } virtual int get_next(); int cmp_next(QUICK_RANGE *range); bool unique_key_range(); |