~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to sql/sql_string.cc

  • Committer: monty at mysql
  • Date: 2000-11-15 22:24:11 UTC
  • mfrom: (217.1.16)
  • mto: This revision was merged to the branch mainline in revision 249.
  • Revision ID: sp1r-monty@narttu.mysql.fi-20001115222411-59719
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
  return FALSE;
96
96
}
97
97
 
98
 
 
99
 
#ifdef NOT_NEEDED
100
 
bool String::set(long num)
101
 
{
102
 
  if (alloc(14))
103
 
    return TRUE;
104
 
  str_length=(uint32) (int10_to_str(num,Ptr,-10)-Ptr);
105
 
  return FALSE;
106
 
}
107
 
#endif
108
 
 
109
98
bool String::set(longlong num)
110
99
{
111
100
  if (alloc(21))
274
263
  return FALSE;
275
264
}
276
265
 
 
266
#ifdef TO_BE_REMOVED
277
267
bool String::append(FILE* file, uint32 arg_length, myf my_flags)
278
268
{
279
269
  if (realloc(str_length+arg_length))
286
276
  str_length+=arg_length;
287
277
  return FALSE;
288
278
}
 
279
#endif
 
280
 
 
281
bool String::append(IO_CACHE* file, uint32 arg_length)
 
282
{
 
283
  if (realloc(str_length+arg_length))
 
284
    return TRUE;
 
285
  if (my_b_read(file, (byte*) Ptr + str_length, arg_length))
 
286
  {
 
287
    shrink(str_length);
 
288
    return TRUE;
 
289
  }
 
290
  str_length+=arg_length;
 
291
  return FALSE;
 
292
}
289
293
 
290
294
uint32 String::numchars()
291
295
{