summaryrefslogtreecommitdiff
path: root/sql/opt_ft.h
diff options
context:
space:
mode:
authorunknown <psergey@psergey.(none)>2003-11-13 17:52:02 +0300
committerunknown <psergey@psergey.(none)>2003-11-13 17:52:02 +0300
commit6e464cc06d8340cb5f0f26fd6894301eef55af1f (patch)
treedece10da0db22949b7cc68196bc7d0c25bbafcf5 /sql/opt_ft.h
parente515e4dc46d4ebc5902cbb98f5be3a5ee1f4625d (diff)
downloadmariadb-git-6e464cc06d8340cb5f0f26fd6894301eef55af1f.tar.gz
Added index_merge access method
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/opt_ft.h')
-rw-r--r--sql/opt_ft.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/opt_ft.h b/sql/opt_ft.h
index b055edc107c..8cc83bbe98b 100644
--- a/sql/opt_ft.h
+++ b/sql/opt_ft.h
@@ -24,17 +24,18 @@
#pragma interface /* gcc class implementation */
#endif
-class FT_SELECT: public QUICK_SELECT {
+class FT_SELECT: public QUICK_RANGE_SELECT {
public:
TABLE_REF *ref;
FT_SELECT(TABLE *table, TABLE_REF *tref) :
- QUICK_SELECT (table,tref->key,1), ref(tref) { init(); }
-
- int init() { return error=file->ft_init(); }
+ QUICK_RANGE_SELECT (table,tref->key,1), ref(tref) { init(); }
+
+ int init() { QUICK_RANGE_SELECT::init(); return (error=file->ft_init()); }
int get_next() { return error=file->ft_read(record); }
+ int get_type() { return QS_TYPE_FULLTEXT; }
};
-QUICK_SELECT *get_ft_or_quick_select_for_ref(TABLE *table, JOIN_TAB *tab);
+QUICK_RANGE_SELECT *get_ft_or_quick_select_for_ref(TABLE *table, JOIN_TAB *tab);
#endif