mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-runtime server-tools/instance-manager/guardian.cc: Auto merged sql/handler.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_prepare.cc: Auto merged
This commit is contained in:
@ -1703,7 +1703,14 @@ public:
|
||||
virtual bool initialize_tables (JOIN *join=0) { return 0; }
|
||||
virtual void send_error(uint errcode,const char *err);
|
||||
virtual bool send_eof()=0;
|
||||
virtual bool simple_select() { return 0; }
|
||||
/**
|
||||
Check if this query returns a result set and therefore is allowed in
|
||||
cursors and set an error message if it is not the case.
|
||||
|
||||
@retval FALSE success
|
||||
@retval TRUE error, an error message is set
|
||||
*/
|
||||
virtual bool check_simple_select() const;
|
||||
virtual void abort() {}
|
||||
/*
|
||||
Cleanup instance of this class for next execution of a prepared
|
||||
@ -1741,7 +1748,7 @@ public:
|
||||
bool send_fields(List<Item> &list, uint flags);
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
bool simple_select() { return 1; }
|
||||
virtual bool check_simple_select() const { return FALSE; }
|
||||
void abort();
|
||||
};
|
||||
|
||||
@ -2189,6 +2196,7 @@ public:
|
||||
int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
virtual bool check_simple_select() const;
|
||||
void cleanup();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user