~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Brian Aker
  • Date: 2009-05-15 19:17:03 UTC
  • mto: This revision was merged to the branch mainline in revision 1023.
  • Revision ID: brian@gaz-20090515191703-bhfoodfaenh6gp9z
Force UTF8 (remove the bits for looking for ascii).

This is a reverse of commit 31951 from MySQL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2711
2711
  if (cs->mbminlen > 1)
2712
2712
  {
2713
2713
    uint32_t dummy_errors;
2714
 
    sp= new (session->mem_root) Item_string("", 0, cs, DERIVATION_COERCIBLE, MY_REPERTOIRE_ASCII);
 
2714
    sp= new (session->mem_root) Item_string("", 0, cs, DERIVATION_COERCIBLE);
2715
2715
    sp->str_value.copy(" ", 1, &my_charset_utf8_general_ci, cs, &dummy_errors);
2716
2716
  }
2717
2717
  else
2718
2718
  {
2719
 
    sp= new (session->mem_root) Item_string(" ", 1, cs, DERIVATION_COERCIBLE, MY_REPERTOIRE_ASCII);
 
2719
    sp= new (session->mem_root) Item_string(" ", 1, cs, DERIVATION_COERCIBLE);
2720
2720
  }
2721
2721
 
2722
2722
  return new (session->mem_root) Item_func_repeat(sp, arg1);