~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

  • 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:
306
306
 
307
307
void String::append(const char *s,size_t arg_length)
308
308
{
309
 
  if (!arg_length)
 
309
  if (arg_length == 0)
310
310
    return;
311
311
 
312
312
  /*
313
313
    For an ASCII compatinble string we can just append.
314
314
  */
315
315
  realloc(str_length+arg_length);
316
 
  memcpy(Ptr+str_length,s,arg_length);
 
316
  memcpy(Ptr +str_length, s, arg_length);
317
317
  str_length+=arg_length;
318
318
}
319
319