summaryrefslogtreecommitdiff
path: root/sql/protocol.h
diff options
context:
space:
mode:
authorhf@deer.(none) <>2003-09-17 20:48:53 +0500
committerhf@deer.(none) <>2003-09-17 20:48:53 +0500
commitddbca4176df154a27179e9b0b8a5379a41259a58 (patch)
tree883748d65cbe22427001e2d6bd03ea8386ee3593 /sql/protocol.h
parent117d18335a6727256fba1a45b3c4e68a64887449 (diff)
downloadmariadb-git-ddbca4176df154a27179e9b0b8a5379a41259a58.tar.gz
SCRUM:
prepared statements in embedded library
Diffstat (limited to 'sql/protocol.h')
-rw-r--r--sql/protocol.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/protocol.h b/sql/protocol.h
index f32c135ab3c..8986757922e 100644
--- a/sql/protocol.h
+++ b/sql/protocol.h
@@ -53,7 +53,11 @@ public:
bool store(const char *from, CHARSET_INFO *cs);
String *storage_packet() { return packet; }
inline void free() { packet->free(); }
+#ifndef EMBEDDED_LIBRARY
bool write();
+#else
+ virtual bool write();
+#endif
inline bool store(uint32 from)
{ return store_long((longlong) from); }
inline bool store(longlong from)
@@ -121,6 +125,9 @@ public:
Protocol_prep(THD *thd) :Protocol(thd) {}
virtual bool prepare_for_send(List<Item> *item_list);
virtual void prepare_for_resend();
+#ifdef EMBEDDED_LIBRARY
+ virtual bool write();
+#endif
virtual bool store_null();
virtual bool store_tiny(longlong from);
virtual bool store_short(longlong from);
@@ -170,3 +177,9 @@ char *net_store_length(char *packet,uint length);
char *net_store_data(char *to,const char *from, uint length);
char *net_store_data(char *to,int32 from);
char *net_store_data(char *to,longlong from);
+
+#ifdef EMBEDDED_LIBRARY
+bool setup_params_data(struct st_prep_stmt *stmt);
+bool setup_params_data_withlog(struct st_prep_stmt *stmt);
+#endif
+