~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Brian Aker
  • Date: 2010-12-28 04:57:17 UTC
  • mfrom: (2035.2.2 bool)
  • Revision ID: brian@tangent.org-20101228045717-6ax27qw6122h50sf
Merge in boolean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
      char *new_ptr;
218
218
      if (!(new_ptr= reinterpret_cast<char*>(::realloc(Ptr,arg_length))))
219
219
      {
220
 
        Alloced_length = 0;
221
 
        real_alloc(arg_length);
 
220
        Alloced_length = 0;
 
221
        real_alloc(arg_length);
222
222
      }
223
223
      else
224
224
      {
225
 
        Ptr=new_ptr;
226
 
        Alloced_length=arg_length;
 
225
        Ptr=new_ptr;
 
226
        Alloced_length=arg_length;
227
227
      }
228
228
    }
229
229
  }
272
272
    else
273
273
    {
274
274
      if (realloc(str_length+1))
275
 
        return 1;
 
275
        return 1;
276
276
      Ptr[str_length++]=chr;
277
277
    }
278
278
    return 0;