~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field_conv.cc

  • Committer: Brian Aker
  • Date: 2011-01-06 20:35:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2064.
  • Revision ID: brian@tangent.org-20110106203526-p9k1sub71wqajv7y
We no longer look at the sign of a timestamp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
856
856
    return to->store(result.c_ptr_quick(),result.length(),from->charset());
857
857
  }
858
858
  else if (from->result_type() == REAL_RESULT)
 
859
  {
859
860
    return to->store(from->val_real());
 
861
  }
860
862
  else if (from->result_type() == DECIMAL_RESULT)
861
863
  {
862
864
    type::Decimal buff;
863
865
    return to->store_decimal(from->val_decimal(&buff));
864
866
  }
865
867
  else
 
868
  {
866
869
    return to->store(from->val_int(), test(from->flags & UNSIGNED_FLAG));
 
870
  }
867
871
}
868
872
 
869
873
} /* namespace drizzled */