~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/protocol.h

  • Committer: Brian Aker
  • Date: 2009-02-02 23:10:18 UTC
  • mfrom: (779.3.40 devel)
  • Revision ID: brian@tangent.org-20090202231018-zlp0hka6kgwy1vfy
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  enum { SEND_NUM_ROWS= 1, SEND_DEFAULTS= 2, SEND_EOF= 4 };
55
55
  virtual bool send_fields(List<Item> *list, uint32_t flags);
56
56
 
57
 
  bool store(I_List<i_string> *str_list);
58
 
  bool store(const char *from, const CHARSET_INFO * const cs);
 
57
  virtual bool store(I_List<i_string> *str_list);
 
58
  virtual bool store(const char *from, const CHARSET_INFO * const cs);
59
59
  String *storage_packet() { return packet; }
60
60
  void free();
61
61
  virtual bool write();
62
 
  inline  bool store(int from)
63
 
  { return store_long((int64_t) from); }
64
 
  inline  bool store(uint32_t from)
65
 
  { return store_long((int64_t) from); }
66
 
  inline  bool store(int64_t from)
 
62
  virtual bool store(int from)
 
63
  { return store_long((int64_t) from); }
 
64
  virtual  bool store(uint32_t from)
 
65
  { return store_long((int64_t) from); }
 
66
  virtual bool store(int64_t from)
67
67
  { return store_int64_t((int64_t) from, 0); }
68
 
  inline  bool store(uint64_t from)
 
68
  virtual bool store(uint64_t from)
69
69
  { return store_int64_t((int64_t) from, 1); }
70
 
  bool store(String *str);
 
70
  virtual bool store(String *str);
71
71
 
72
72
  virtual bool prepare_for_send(List<Item> *item_list)
73
73
  {
113
113
  Protocol_text() {}
114
114
  Protocol_text(Session *session_arg) :Protocol(session_arg) {}
115
115
  virtual void prepare_for_resend();
 
116
  virtual bool store(I_List<i_string> *str_list)
 
117
  {
 
118
    return Protocol::store(str_list);
 
119
  }
 
120
  virtual bool store(const char *from, const CHARSET_INFO * const cs)
 
121
  {
 
122
    return Protocol::store(from, cs);
 
123
  }
116
124
  virtual bool store_null();
117
125
  virtual bool store_tiny(int64_t from);
118
126
  virtual bool store_short(int64_t from);
119
127
  virtual bool store_long(int64_t from);
120
128
  virtual bool store_int64_t(int64_t from, bool unsigned_flag);
121
129
  virtual bool store_decimal(const my_decimal *);
 
130
  virtual bool store(int from)
 
131
  { return store_long((int64_t) from); }
 
132
  virtual  bool store(uint32_t from)
 
133
  { return store_long((int64_t) from); }
 
134
  virtual bool store(int64_t from)
 
135
  { return store_int64_t((int64_t) from, 0); }
 
136
  virtual bool store(uint64_t from)
 
137
  { return store_int64_t((int64_t) from, 1); }
 
138
  virtual bool store(String *str)
 
139
  {
 
140
    return Protocol::store(str);
 
141
  }
122
142
  virtual bool store(const char *from, size_t length, const CHARSET_INFO * const cs);
123
143
  virtual bool store(const char *from, size_t length,
124
144
                     const CHARSET_INFO * const fromcs,  const CHARSET_INFO * const tocs);