~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 18:16:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704181624-r7xu8o1oorfjfse5
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
 
147
147
void String::set_int(int64_t num, bool unsigned_flag, const charset_info_st * const cs)
148
148
{
149
 
  size_t l=20*cs->mbmaxlen+1;
150
 
  int base= unsigned_flag ? 10 : -10;
151
 
 
 
149
  size_t l= 20 * cs->mbmaxlen + 1;
152
150
  alloc(l);
153
 
  str_length=(size_t) (cs->cset->int64_t10_to_str)(cs,Ptr,l,base,num);
 
151
  str_length=(size_t) (cs->cset->int64_t10_to_str)(cs, Ptr, l, unsigned_flag ? 10 : -10,num);
154
152
  str_charset=cs;
155
153
}
156
154