~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Brian Aker
  • Date: 2011-02-14 22:31:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2171.
  • Revision ID: brian@tangent.org-20110214223126-rabur7v6dz3m989p
Fix issues where int display length may be too small, and fix collation
cases around dates (which are always binary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2981
2981
   * it is, then we must convert to the highest Timestamp value (or lowest,
2982
2982
   * depending on whether the datetime is before or after the epoch.
2983
2983
   */
2984
 
  if (field->type() == DRIZZLE_TYPE_TIMESTAMP)
 
2984
  if (field->is_timestamp())
2985
2985
  {
2986
2986
    /*
2987
2987
     * The left-side of the range comparison is a timestamp field.  Therefore,