~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/protocol.h

  • Committer: Lee
  • Date: 2008-10-03 23:31:06 UTC
  • mfrom: (413.2.3 drizzle)
  • mto: This revision was merged to the branch mainline in revision 459.
  • Revision ID: lbieber@lbieber-desktop-20081003233106-tgvzu0fh25gb3xeg
breaking out enum field classes

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#ifdef USE_PRAGMA_INTERFACE
 
21
#pragma interface                       /* gcc class implementation */
 
22
#endif
 
23
 
20
24
 
21
25
class i_string;
22
26
class THD;
29
33
  THD    *thd;
30
34
  String *packet;
31
35
  String *convert;
32
 
  uint32_t field_pos;
33
 
  uint32_t field_count;
34
 
  bool net_store_data(const unsigned char *from, size_t length);
35
 
  bool net_store_data(const unsigned char *from, size_t length,
 
36
  uint field_pos;
 
37
  uint field_count;
 
38
  bool net_store_data(const uchar *from, size_t length);
 
39
  bool net_store_data(const uchar *from, size_t length,
36
40
                      const CHARSET_INFO * const fromcs, const CHARSET_INFO * const tocs);
37
41
  bool store_string_aux(const char *from, size_t length,
38
42
                        const CHARSET_INFO * const fromcs, const CHARSET_INFO * const tocs);
43
47
  void init(THD* thd_arg);
44
48
 
45
49
  enum { SEND_NUM_ROWS= 1, SEND_DEFAULTS= 2, SEND_EOF= 4 };
46
 
  virtual bool send_fields(List<Item> *list, uint32_t flags);
 
50
  virtual bool send_fields(List<Item> *list, uint flags);
47
51
 
48
52
  bool store(I_List<i_string> *str_list);
49
53
  bool store(const char *from, const CHARSET_INFO * const cs);
124
128
  virtual enum enum_protocol_type type() { return PROTOCOL_TEXT; };
125
129
};
126
130
 
127
 
void send_warning(THD *thd, uint32_t sql_errno, const char *err=0);
128
 
void net_send_error(THD *thd, uint32_t sql_errno=0, const char *err=0);
 
131
void send_warning(THD *thd, uint sql_errno, const char *err=0);
 
132
void net_send_error(THD *thd, uint sql_errno=0, const char *err=0);
129
133
void net_end_statement(THD *thd);
130
 
unsigned char *net_store_data(unsigned char *to,const unsigned char *from, size_t length);
131
 
unsigned char *net_store_data(unsigned char *to,int32_t from);
132
 
unsigned char *net_store_data(unsigned char *to,int64_t from);
 
134
uchar *net_store_data(uchar *to,const uchar *from, size_t length);
 
135
uchar *net_store_data(uchar *to,int32_t from);
 
136
uchar *net_store_data(uchar *to,int64_t from);
133
137