~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.cc

  • Committer: Brian Aker
  • Date: 2010-07-16 19:54:08 UTC
  • mfrom: (1660.1.4 rollup)
  • Revision ID: brian@gaz-20100716195408-8fiuxwmy4mpqq4ko
Rollup patch + fix for not intel processors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
  temporal.to_int64_t(&int_value);
62
62
 
63
63
#ifdef WORDS_BIGENDIAN
64
 
  if (table && table->s->db_low_byte_first)
 
64
  if (getTable() && getTable()->s->db_low_byte_first)
65
65
  {
66
66
    int8store(ptr, int_value);
67
67
  }
116
116
  temporal.to_int64_t(&int_value);
117
117
 
118
118
#ifdef WORDS_BIGENDIAN
119
 
  if (table && table->s->db_low_byte_first)
 
119
  if (getTable() && getTable()->s->db_low_byte_first)
120
120
  {
121
121
    int8store(ptr, int_value);
122
122
  }
152
152
  temporal.to_int64_t(&int_value);
153
153
 
154
154
#ifdef WORDS_BIGENDIAN
155
 
  if (table && table->s->db_low_byte_first)
 
155
  if (getTable() && getTable()->s->db_low_byte_first)
156
156
  {
157
157
    int8store(ptr, int_value);
158
158
  }
174
174
  ASSERT_COLUMN_MARKED_FOR_READ;
175
175
 
176
176
#ifdef WORDS_BIGENDIAN
177
 
  if (table && table->s->db_low_byte_first)
 
177
  if (getTable() && getTable()->s->db_low_byte_first)
178
178
    j=sint8korr(ptr);
179
179
  else
180
180
#endif
193
193
  ASSERT_COLUMN_MARKED_FOR_READ;
194
194
 
195
195
#ifdef WORDS_BIGENDIAN
196
 
  if (table && table->s->db_low_byte_first)
 
196
  if (getTable() && getTable()->s->db_low_byte_first)
197
197
    tmp=sint8korr(ptr);
198
198
  else
199
199
#endif
249
249
{
250
250
  int64_t a,b;
251
251
#ifdef WORDS_BIGENDIAN
252
 
  if (table && table->s->db_low_byte_first)
 
252
  if (getTable() && getTable()->s->db_low_byte_first)
253
253
  {
254
254
    a=sint8korr(a_ptr);
255
255
    b=sint8korr(b_ptr);
267
267
void Field_datetime::sort_string(unsigned char *to,uint32_t )
268
268
{
269
269
#ifdef WORDS_BIGENDIAN
270
 
  if (!table || !table->s->db_low_byte_first)
 
270
  if (!getTable() || !getTable()->s->db_low_byte_first)
271
271
  {
272
272
    to[0] = ptr[0];
273
273
    to[1] = ptr[1];