~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_func.cc

  • Committer: Monty Taylor
  • Date: 2008-09-23 01:53:40 UTC
  • mto: This revision was merged to the branch mainline in revision 419.
  • Revision ID: monty@inaugust.com-20080923015340-z8p6sbl7y27c4k30
Enabled -Wlong-long.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1724
1724
    return 0;
1725
1725
  }
1726
1726
  null_value=0;
1727
 
  return (shift < sizeof(int64_t)*8 ? (int64_t) res : 0LL);
 
1727
  return (shift < sizeof(int64_t)*8 ? (int64_t) res : 0L);
1728
1728
}
1729
1729
 
1730
1730
int64_t Item_func_shift_right::val_int()
1739
1739
    return 0;
1740
1740
  }
1741
1741
  null_value=0;
1742
 
  return (shift < sizeof(int64_t)*8 ? (int64_t) res : 0LL);
 
1742
  return (shift < sizeof(int64_t)*8 ? (int64_t) res : 0);
1743
1743
}
1744
1744
 
1745
1745
 
2700
2700
               wc == (my_wc_t) separator)
2701
2701
        return (int64_t) ++position;
2702
2702
      else
2703
 
        return 0LL;
 
2703
        return 0L;
2704
2704
    }
2705
2705
  }
2706
2706
  return 0;
3634
3634
int64_t user_var_entry::val_int(bool *null_value) const
3635
3635
{
3636
3636
  if ((*null_value= (value == 0)))
3637
 
    return 0LL;
 
3637
    return 0L;
3638
3638
 
3639
3639
  switch (type) {
3640
3640
  case REAL_RESULT:
3656
3656
    assert(1);                          // Impossible
3657
3657
    break;
3658
3658
  }
3659
 
  return 0LL;                                   // Impossible
 
3659
  return 0L;                                    // Impossible
3660
3660
}
3661
3661
 
3662
3662
 
4087
4087
{
4088
4088
  assert(fixed == 1);
4089
4089
  if (!var_entry)
4090
 
    return 0LL;                         // No such variable
 
4090
    return 0L;                          // No such variable
4091
4091
  return (var_entry->val_int(&null_value));
4092
4092
}
4093
4093