~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_func.cc

  • Committer: Brian Aker
  • Date: 2008-08-14 20:59:41 UTC
  • Revision ID: brian@tangent.org-20080814205941-rdqc6mqguf50mvoq
Remove SET

Show diffs side-by-side

added added

removed removed

Lines of Context:
2636
2636
{
2637
2637
  decimals=0;
2638
2638
  max_length=3;                                 // 1-999
2639
 
  if (args[0]->const_item() && args[1]->type() == FIELD_ITEM)
2640
 
  {
2641
 
    Field *field= ((Item_field*) args[1])->field;
2642
 
    if (field->real_type() == DRIZZLE_TYPE_SET)
2643
 
    {
2644
 
      String *find=args[0]->val_str(&value);
2645
 
      if (find)
2646
 
      {
2647
 
        enum_value= find_type(((Field_enum*) field)->typelib,find->ptr(),
2648
 
                              find->length(), 0);
2649
 
        enum_bit=0;
2650
 
        if (enum_value)
2651
 
          enum_bit=1LL << (enum_value-1);
2652
 
      }
2653
 
    }
2654
 
  }
2655
2639
  agg_arg_charsets(cmp_collation, args, 2, MY_COLL_CMP_CONV, 1);
2656
2640
}
2657
2641