From 6022c31a262881fecc4cd837a41e036489aab8f5 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 15 Mar 2004 23:11:58 +0300 Subject: Fix for Bug#3183 --- sql/opt_range.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sql/opt_range.h') diff --git a/sql/opt_range.h b/sql/opt_range.h index 1e5f58bc1f5..3c528719b29 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -87,7 +87,16 @@ public: QUICK_SELECT_I(); virtual ~QUICK_SELECT_I(){}; + /* + Call init() immediately after creation of quick select. if init() call + fails, reset() or get_next() must not be called. + */ virtual int init() = 0; + + /* + Call reset() before first get_next call. get_next must not be called if + reset() call fails. + */ virtual int reset(void) = 0; virtual int get_next() = 0; /* get next record to retrieve */ virtual bool reverse_sorted() = 0; -- cgit v1.2.1