diff options
author | hf@deer.mysql.r18.ru <> | 2002-12-17 19:33:25 +0400 |
---|---|---|
committer | hf@deer.mysql.r18.ru <> | 2002-12-17 19:33:25 +0400 |
commit | d8c700891e34b3cec353e45f4ec9fb0bd1726bfe (patch) | |
tree | 314906891e628c9c38154fc9618195971f885a7c /sql/protocol.h | |
parent | c1e69d2cca45deb7fb639696b5e0aeb91ec43ace (diff) | |
download | mariadb-git-d8c700891e34b3cec353e45f4ec9fb0bd1726bfe.tar.gz |
Merging&testing
Diffstat (limited to 'sql/protocol.h')
-rw-r--r-- | sql/protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/protocol.h b/sql/protocol.h index b3ab0a2b31d..cc20e158243 100644 --- a/sql/protocol.h +++ b/sql/protocol.h @@ -33,6 +33,9 @@ protected: #ifndef DEBUG_OFF enum enum_field_types *field_types; #endif +#ifdef EMBEDDED_LIBRARY + uint n_fields; +#endif public: CONVERT *convert; @@ -52,6 +55,12 @@ public: { return store_longlong((longlong) from, 0); } inline bool store(ulonglong from) { return store_longlong((longlong) from, 1); } + +#ifdef EMBEDDED_LIBRARY + inline void set_nfields(uint fields_count) { n_fields= fields_count; } +#else + inline void set_nfields(uint fields_count) {} +#endif virtual bool prepare_for_send(List<Item> *item_list) { return 0;} virtual void prepare_for_resend()=0; |