~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/neg.cc

  • Committer: Brian Aker
  • Date: 2008-12-06 23:57:32 UTC
  • mfrom: (656.1.10 devel)
  • Revision ID: brian@tangent.org-20081206235732-jx228bczpvmxu8ww
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    int64_t val= args[0]->val_int();
74
74
    if ((uint64_t) val >= (uint64_t) INT64_MIN &&
75
75
        ((uint64_t) val != (uint64_t) INT64_MIN ||
76
 
          args[0]->type() != INT_ITEM))        
 
76
          args[0]->type() != INT_ITEM))
77
77
    {
78
78
      /*
79
79
        Ensure that result is converted to DECIMAL, as int64_t can't hold