~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

  • Committer: Olaf van der Spek
  • Date: 2011-04-14 21:56:22 UTC
  • mto: (2279.1.1 build) (2280.2.2 build)
  • mto: This revision was merged to the branch mainline in revision 2280.
  • Revision ID: olafvdspek@gmail.com-20110414215622-5b590ajxlwqqiyi0
Return void

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
      str_length=0;                             /* Safety */
200
200
    }
201
201
  }
202
 
  inline bool alloc(size_t arg_length)
 
202
  inline void alloc(size_t arg_length)
203
203
  {
204
 
    if (arg_length < Alloced_length)
205
 
      return 0;
206
 
    return real_alloc(arg_length);
 
204
    if (arg_length >= Alloced_length)
 
205
      real_alloc(arg_length);
207
206
  }
208
 
  bool real_alloc(size_t arg_length);                   // Empties old string
 
207
  void real_alloc(size_t arg_length);                   // Empties old string
209
208
  bool realloc(size_t arg_length);
210
209
  inline void shrink(size_t arg_length)         // Shrink buffer
211
210
  {