~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/protocol.h

  • Committer: Brian Aker
  • Date: 2008-07-13 22:45:08 UTC
  • Revision ID: brian@tangent.org-20080713224508-hb20z4okblotb39a
longlong replacement

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
  inline void free() { packet->free(); }
52
52
  virtual bool write();
53
53
  inline  bool store(int from)
54
 
  { return store_long((longlong) from); }
 
54
  { return store_long((int64_t) from); }
55
55
  inline  bool store(uint32 from)
56
 
  { return store_long((longlong) from); }
57
 
  inline  bool store(longlong from)
58
 
  { return store_longlong((longlong) from, 0); }
 
56
  { return store_long((int64_t) from); }
 
57
  inline  bool store(int64_t from)
 
58
  { return store_int64_t((int64_t) from, 0); }
59
59
  inline  bool store(uint64_t from)
60
 
  { return store_longlong((longlong) from, 1); }
 
60
  { return store_int64_t((int64_t) from, 1); }
61
61
  inline bool store(String *str)
62
62
  { return store((char*) str->ptr(), str->length(), str->charset()); }
63
63
 
71
71
  virtual void prepare_for_resend()=0;
72
72
 
73
73
  virtual bool store_null()=0;
74
 
  virtual bool store_tiny(longlong from)=0;
75
 
  virtual bool store_short(longlong from)=0;
76
 
  virtual bool store_long(longlong from)=0;
77
 
  virtual bool store_longlong(longlong from, bool unsigned_flag)=0;
 
74
  virtual bool store_tiny(int64_t from)=0;
 
75
  virtual bool store_short(int64_t from)=0;
 
76
  virtual bool store_long(int64_t from)=0;
 
77
  virtual bool store_int64_t(int64_t from, bool unsigned_flag)=0;
78
78
  virtual bool store_decimal(const my_decimal *)=0;
79
79
  virtual bool store(const char *from, size_t length, CHARSET_INFO *cs)=0;
80
80
  virtual bool store(const char *from, size_t length, 
107
107
  Protocol_text(THD *thd_arg) :Protocol(thd_arg) {}
108
108
  virtual void prepare_for_resend();
109
109
  virtual bool store_null();
110
 
  virtual bool store_tiny(longlong from);
111
 
  virtual bool store_short(longlong from);
112
 
  virtual bool store_long(longlong from);
113
 
  virtual bool store_longlong(longlong from, bool unsigned_flag);
 
110
  virtual bool store_tiny(int64_t from);
 
111
  virtual bool store_short(int64_t from);
 
112
  virtual bool store_long(int64_t from);
 
113
  virtual bool store_int64_t(int64_t from, bool unsigned_flag);
114
114
  virtual bool store_decimal(const my_decimal *);
115
115
  virtual bool store(const char *from, size_t length, CHARSET_INFO *cs);
116
116
  virtual bool store(const char *from, size_t length,
129
129
void net_end_statement(THD *thd);
130
130
uchar *net_store_data(uchar *to,const uchar *from, size_t length);
131
131
uchar *net_store_data(uchar *to,int32 from);
132
 
uchar *net_store_data(uchar *to,longlong from);
 
132
uchar *net_store_data(uchar *to,int64_t from);
133
133