~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Brian Aker
  • Date: 2010-07-16 05:40:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1661.
  • Revision ID: brian@gaz-20100716054008-cfcvyu0akpwqnwqd
Encapsulate Table in field

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
  double nr= my_strntod(cs,(char*) from, len, &end, &error);
49
49
 
50
50
  ASSERT_COLUMN_MARKED_FOR_WRITE;
51
 
  if (error || (!len || (((uint32_t) (end-from) != len) && table->in_use->count_cuted_fields)))
 
51
  if (error || (!len || (((uint32_t) (end-from) != len) && getTable()->in_use->count_cuted_fields)))
52
52
  {
53
53
    set_warning(DRIZZLE_ERROR::WARN_LEVEL_WARN,
54
54
                (error ? ER_WARN_DATA_OUT_OF_RANGE : ER_WARN_DATA_TRUNCATED), 1);
66
66
  ASSERT_COLUMN_MARKED_FOR_WRITE;
67
67
 
68
68
#ifdef WORDS_BIGENDIAN
69
 
  if (table->s->db_low_byte_first)
 
69
  if (getTable()->getShare()->db_low_byte_first)
70
70
  {
71
71
    float8store(ptr,nr);
72
72
  }