~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/long.cc

  • Committer: Brian Aker
  • Date: 2008-08-05 04:10:42 UTC
  • mfrom: (261.2.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: brian@tangent.org-20080805041042-1l4893r3bwy2lxz2
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    else if (nr > (double) UINT32_MAX)
64
64
    {
65
65
      res= INT32_MAX;
66
 
      set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
 
66
      set_warning(DRIZZLE_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
67
67
      error= 1;
68
68
    }
69
69
    else
85
85
      res=(int32_t) (int64_t) nr;
86
86
  }
87
87
  if (error)
88
 
    set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
 
88
    set_warning(DRIZZLE_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
89
89
 
90
90
#ifdef WORDS_BIGENDIAN
91
91
  if (table->s->db_low_byte_first)
137
137
      res=(int32_t) nr;
138
138
  }
139
139
  if (error)
140
 
    set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
 
140
    set_warning(DRIZZLE_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1);
141
141
 
142
142
#ifdef WORDS_BIGENDIAN
143
143
  if (table->s->db_low_byte_first)