~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cmpfunc.cc

  • Committer: Eric Day
  • Date: 2009-08-31 23:50:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1134.
  • Revision ID: eday@oddments.org-20090831235037-hwwe6zhq94o4lxtd
Removed purecov messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2088
2088
  {
2089
2089
    int64_t value=args[0]->val_int(), a, b;
2090
2090
    if ((null_value=args[0]->null_value))
2091
 
      return 0;                                 /* purecov: inspected */
 
2091
      return 0;
2092
2092
    a=args[1]->val_int();
2093
2093
    b=args[2]->val_int();
2094
2094
    if (!args[1]->null_value && !args[2]->null_value)
2109
2109
    my_decimal dec_buf, *dec= args[0]->val_decimal(&dec_buf),
2110
2110
               a_buf, *a_dec, b_buf, *b_dec;
2111
2111
    if ((null_value=args[0]->null_value))
2112
 
      return 0;                                 /* purecov: inspected */
 
2112
      return 0;
2113
2113
    a_dec= args[1]->val_decimal(&a_buf);
2114
2114
    b_dec= args[2]->val_decimal(&b_buf);
2115
2115
    if (!args[1]->null_value && !args[2]->null_value)
2126
2126
  {
2127
2127
    double value= args[0]->val_real(),a,b;
2128
2128
    if ((null_value=args[0]->null_value))
2129
 
      return 0;                                 /* purecov: inspected */
 
2129
      return 0;
2130
2130
    a= args[1]->val_real();
2131
2131
    b= args[2]->val_real();
2132
2132
    if (!args[1]->null_value && !args[2]->null_value)
3202
3202
{
3203
3203
  tmp= item->val_real();
3204
3204
  if (item->null_value)
3205
 
    return 0;                                   /* purecov: inspected */
 
3205
    return 0;
3206
3206
  return (unsigned char*) &tmp;
3207
3207
}
3208
3208
 
3883
3883
    if ((!item->fixed &&
3884
3884
         item->fix_fields(session, li.ref())) ||
3885
3885
        (item= *li.ref())->check_cols(1))
3886
 
      return true; /* purecov: inspected */
 
3886
      return true;
3887
3887
    used_tables_cache|=     item->used_tables();
3888
3888
    if (item->const_item())
3889
3889
      and_tables_cache= (table_map) 0;