summaryrefslogtreecommitdiff
path: root/sql/protocol.h
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2004-08-03 03:32:21 -0700
committerkonstantin@mysql.com <>2004-08-03 03:32:21 -0700
commitd3e520ce7e840df5f119e8fc2f5b5bb9640e53df (patch)
tree90caa835d0b6af4148caf934c5d80616cb5c25ae /sql/protocol.h
parent7e6bade23bf5fbaf6cdb76e2fce2f76cfc533a7a (diff)
downloadmariadb-git-d3e520ce7e840df5f119e8fc2f5b5bb9640e53df.tar.gz
Port of cursors to be pushed into 5.0 tree:
- client side part is simple and may be considered stable - server side part now just joggles with THD state to save execution state and has no additional locking wisdom. Lot's of it are to be rewritten.
Diffstat (limited to 'sql/protocol.h')
-rw-r--r--sql/protocol.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/protocol.h b/sql/protocol.h
index 079c06ae155..8dc2f506c6c 100644
--- a/sql/protocol.h
+++ b/sql/protocol.h
@@ -50,7 +50,12 @@ public:
Protocol(THD *thd_arg) { init(thd_arg); }
virtual ~Protocol() {}
void init(THD* thd_arg);
- virtual bool send_fields(List<Item> *list, uint flag);
+
+ static const uint SEND_NUM_ROWS= 1;
+ static const uint SEND_DEFAULTS= 2;
+ static const uint SEND_EOF= 4;
+ virtual bool send_fields(List<Item> *list, uint flags);
+
bool send_records_num(List<Item> *list, ulonglong records);
bool store(I_List<i_string> *str_list);
bool store(const char *from, CHARSET_INFO *cs);
@@ -163,7 +168,7 @@ public:
prev_record= &data;
return Protocol_simple::prepare_for_send(item_list);
}
- bool send_fields(List<Item> *list, uint flag);
+ bool send_fields(List<Item> *list, uint flags);
bool write();
uint get_field_count() { return field_count; }
};