~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Brian Aker
  • Date: 2011-07-14 22:12:02 UTC
  • mto: (2392.1.1 drizzle-autoconf)
  • mto: This revision was merged to the branch mainline in revision 2368.
  • Revision ID: brian@tangent.org-20110714221202-9ov19jp0tmhiovqk
Fixes bug where true/false would not be interpreted correctly/displayed correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    Ptr= str; str_length=Alloced_length=arg_length ; alloced=0;
136
136
    str_charset=cs;
137
137
  }
 
138
 
138
139
  inline void set(const char *str,size_t arg_length, const charset_info_st * const cs)
139
140
  {
140
141
    free();
143
144
    str_charset=cs;
144
145
  }
145
146
  void set_ascii(const char *str, size_t arg_length);
 
147
 
146
148
  inline void set_quick(char *str,size_t arg_length, const charset_info_st * const cs)
147
149
  {
148
150
    if (!alloced)
151
153
    }
152
154
    str_charset= cs;
153
155
  }
 
156
 
154
157
  void set_int(int64_t num, bool unsigned_flag, const charset_info_st * const cs);
155
158
  void set(int64_t num, const charset_info_st * const cs)
156
159
  { set_int(num, false, cs); }
242
245
  void copy(const std::string&, const charset_info_st*);        // Allocate new string
243
246
  void copy(const char*, size_t, const charset_info_st*); // Allocate new string
244
247
  static bool needs_conversion(size_t arg_length,
245
 
                               const charset_info_st* cs_from, const charset_info_st* cs_to,
246
 
                               size_t *offset);
 
248
                               const charset_info_st* cs_from, const charset_info_st* cs_to,
 
249
                               size_t *offset);
247
250
  void set_or_copy_aligned(const char *s, size_t arg_length, const charset_info_st*);
248
251
  void copy(const char*s,size_t arg_length, const charset_info_st& csto);
249
252
  void append(const String &s);