~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/epoch.cc

  • Committer: Brian Aker
  • Date: 2010-12-21 20:27:48 UTC
  • mto: (2017.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2018.
  • Revision ID: brian@tangent.org-20101221202748-0f1ur3ozqu569my0
Remove MyISAM flip bit, and make sure that we only pass in a good time_t to
the timestamp translator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
}
157
157
 
158
158
int Epoch::store(const char *from,
159
 
                           uint32_t len,
160
 
                           const CHARSET_INFO * const )
 
159
                 uint32_t len,
 
160
                 const CHARSET_INFO * const )
161
161
{
162
162
  Timestamp temporal;
163
163
 
169
169
    return 1;
170
170
  }
171
171
 
172
 
  uint64_t tmp;
173
 
  temporal.to_time_t((time_t*)&tmp);
 
172
  time_t tmp;
 
173
  temporal.to_time_t(tmp);
174
174
 
175
175
  pack_num(tmp);
176
176
  return 0;
213
213
    return 2;
214
214
  }
215
215
 
216
 
  uint64_t tmp;
217
 
  temporal.to_time_t((time_t*)&tmp);
 
216
  time_t tmp;
 
217
  temporal.to_time_t(tmp);
218
218
 
219
219
  pack_num(tmp);
220
220