~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/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:
95
95
  return FALSE;
96
96
}
97
97
 
98
 
bool String::set(longlong num, CHARSET_INFO *cs)
 
98
bool String::set(int64_t num, CHARSET_INFO *cs)
99
99
{
100
100
  uint l=20*cs->mbmaxlen+1;
101
101
 
102
102
  if (alloc(l))
103
103
    return TRUE;
104
 
  str_length=(uint32) (cs->cset->longlong10_to_str)(cs,Ptr,l,-10,num);
 
104
  str_length=(uint32) (cs->cset->int64_t10_to_str)(cs,Ptr,l,-10,num);
105
105
  str_charset=cs;
106
106
  return FALSE;
107
107
}
112
112
 
113
113
  if (alloc(l))
114
114
    return TRUE;
115
 
  str_length=(uint32) (cs->cset->longlong10_to_str)(cs,Ptr,l,10,num);
 
115
  str_length=(uint32) (cs->cset->int64_t10_to_str)(cs,Ptr,l,10,num);
116
116
  str_charset=cs;
117
117
  return FALSE;
118
118
}