16 #ifndef _sql_cursor_h_
17 #define _sql_cursor_h_
19 #include "sql_class.h"
45 :Query_arena(mem_root_arg, STMT_INITIALIZED),
result(result_arg)
48 virtual bool is_open()
const= 0;
50 virtual int open(
JOIN *top_level_join)= 0;
51 virtual void fetch(ulong num_rows)= 0;
52 virtual void close()= 0;
55 static void operator delete(
void *ptr,
size_t size);
59 bool mysql_open_cursor(THD *thd, select_result *result,