summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index c413b1f4021..bb1cd0f7513 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -134,6 +134,17 @@ class SQL_SELECT :public Sql_alloc {
ha_rows limit, bool force_quick_range=0);
};
+
+class FT_SELECT: public QUICK_SELECT {
+public:
+ FT_SELECT(THD *thd, TABLE *table, uint key):
+ QUICK_SELECT (thd, table, key, 1) { init(); }
+
+ int init() { return error= file->ft_init(); }
+ int get_next() { return error= file->ft_read(record); }
+};
+
+
QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table,
struct st_table_ref *ref);