~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/function/cast/boolean.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
String *Boolean::evaluate(const bool &result, String *val_buffer)
80
80
{
81
 
  const CHARSET_INFO * const cs= &my_charset_bin;
82
 
  uint32_t mlength= (5) * cs->mbmaxlen;
83
 
 
84
 
  val_buffer->alloc(mlength);
85
 
  char *buffer=(char*) val_buffer->c_ptr();
 
81
  val_buffer->alloc(5 * my_charset_bin.mbmaxlen);
 
82
  char *buffer= val_buffer->c_ptr();
86
83
 
87
84
  if (result)
88
85
  {