summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorkostja@bodhi.(none) <>2007-10-31 18:33:13 +0300
committerkostja@bodhi.(none) <>2007-10-31 18:33:13 +0300
commit3154b2bee4dc99b3313081effe2ac9c4c4a487f9 (patch)
tree9e4c116001f7b8f6d21456125e302851b28a07c2 /sql/sql_class.h
parentfdcf20d733eb8e1c5f3abb3ab9cd1744af695a93 (diff)
downloadmariadb-git-3154b2bee4dc99b3313081effe2ac9c4c4a487f9.tar.gz
Cleanup: rename select_send::status to select_send::is_result_set_started.
Add select_send::cleanup. Fix a compilation warning. Issues spotted while working on the fix for Bug#12713.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index db847c814a0..632c440266f 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -2051,14 +2051,20 @@ public:
class select_send :public select_result {
- int status;
+ /**
+ True if we have sent result set metadata to the client.
+ In this case the client always expects us to end the result
+ set with an eof or error packet
+ */
+ bool is_result_set_started;
public:
- select_send() :status(0) {}
+ select_send() :is_result_set_started(FALSE) {}
bool send_fields(List<Item> &list, uint flags);
bool send_data(List<Item> &items);
bool send_eof();
virtual bool check_simple_select() const { return FALSE; }
void abort();
+ virtual void cleanup();
};