~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_string.cc

  • 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:
92
92
  return false;
93
93
}
94
94
 
95
 
bool String::set_int(longlong num, bool unsigned_flag, CHARSET_INFO *cs)
 
95
bool String::set_int(int64_t num, bool unsigned_flag, CHARSET_INFO *cs)
96
96
{
97
97
  uint l=20*cs->mbmaxlen+1;
98
98
  int base= unsigned_flag ? 10 : -10;
99
99
 
100
100
  if (alloc(l))
101
101
    return true;
102
 
  str_length=(uint32) (cs->cset->longlong10_to_str)(cs,Ptr,l,base,num);
 
102
  str_length=(uint32) (cs->cset->int64_t10_to_str)(cs,Ptr,l,base,num);
103
103
  str_charset=cs;
104
104
  return false;
105
105
}