~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/num.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-27 14:23:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2350.
  • Revision ID: olafvdspek@gmail.com-20110627142335-38y17d8xxczy6ilm
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  char buf[64];
45
45
  String *s, tmp(buf, sizeof(buf), &my_charset_bin);
46
46
  s= val_str(&tmp);
47
 
  if ((conv= new Item_string(s->ptr(), s->length(), s->charset())))
48
 
  {
49
 
    conv->str_value.copy();
50
 
    conv->str_value.mark_as_const();
51
 
  }
 
47
  conv= new Item_string(s->ptr(), s->length(), s->charset());
 
48
  conv->str_value.copy();
 
49
  conv->str_value.mark_as_const();
52
50
  return conv;
53
51
}
54
52