~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-10-02 14:17:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: (2.1.17 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101002141748-m6vbfbfjhrw1153e
Tags: 2010.09.1802-1
* New upstream release.
* Removed pid-file argument hack.
* Updated GPL-2 address to be new address.
* Directly copy in drizzledump.1 since debian doesn't have sphinx 1.0 yet.
* Link to jquery from libjs-jquery. Add it as a depend.
* Add drizzled.8 symlink to the install files.

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
  }
90
90
  ASSERT_COLUMN_MARKED_FOR_READ;
91
91
 
92
92
#ifdef WORDS_BIGENDIAN
93
 
  if (table->s->db_low_byte_first)
 
93
  if (getTable()->s->db_low_byte_first)
94
94
  {
95
95
    float8get(j,ptr);
96
96
  }
108
108
  ASSERT_COLUMN_MARKED_FOR_READ;
109
109
 
110
110
#ifdef WORDS_BIGENDIAN
111
 
  if (table->s->db_low_byte_first)
 
111
  if (getTable()->s->db_low_byte_first)
112
112
  {
113
113
    float8get(j,ptr);
114
114
  }
150
150
  ASSERT_COLUMN_MARKED_FOR_READ;
151
151
 
152
152
#ifdef WORDS_BIGENDIAN
153
 
  if (table->s->db_low_byte_first)
 
153
  if (getTable()->s->db_low_byte_first)
154
154
  {
155
155
    float8get(nr,ptr);
156
156
  }
177
177
{
178
178
  double a,b;
179
179
#ifdef WORDS_BIGENDIAN
180
 
  if (table->s->db_low_byte_first)
 
180
  if (getTable()->s->db_low_byte_first)
181
181
  {
182
182
    float8get(a,a_ptr);
183
183
    float8get(b,b_ptr);
198
198
{
199
199
  double nr;
200
200
#ifdef WORDS_BIGENDIAN
201
 
  if (table->s->db_low_byte_first)
 
201
  if (getTable()->s->db_low_byte_first)
202
202
  {
203
203
    float8get(nr,ptr);
204
204
  }