~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
  int error;
148
148
  bool have_smth_to_conv;
149
149
  bool in_dst_time_gap;
150
 
  THD *thd= table ? table->in_use : current_thd;
 
150
  Session *thd= table ? table->in_use : current_thd;
151
151
 
152
152
  /* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
153
153
  have_smth_to_conv= (str_to_datetime(from, len, &l_time, 1, &error) >
206
206
  my_time_t timestamp= 0;
207
207
  int error;
208
208
  bool in_dst_time_gap;
209
 
  THD *thd= table ? table->in_use : current_thd;
 
209
  Session *thd= table ? table->in_use : current_thd;
210
210
 
211
211
  /* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
212
212
  int64_t tmp= number_to_datetime(nr, &l_time, (thd->variables.sql_mode &
250
250
{
251
251
  uint32_t temp;
252
252
  DRIZZLE_TIME time_tmp;
253
 
  THD  *thd= table ? table->in_use : current_thd;
 
253
  Session  *thd= table ? table->in_use : current_thd;
254
254
 
255
255
  thd->time_zone_used= 1;
256
256
#ifdef WORDS_BIGENDIAN
276
276
{
277
277
  uint32_t temp, temp2;
278
278
  DRIZZLE_TIME time_tmp;
279
 
  THD *thd= table ? table->in_use : current_thd;
 
279
  Session *thd= table ? table->in_use : current_thd;
280
280
  char *to;
281
281
 
282
282
  val_buffer->alloc(field_length+1);
347
347
bool Field_timestamp::get_date(DRIZZLE_TIME *ltime, uint32_t fuzzydate)
348
348
{
349
349
  long temp;
350
 
  THD *thd= table ? table->in_use : current_thd;
 
350
  Session *thd= table ? table->in_use : current_thd;
351
351
  thd->time_zone_used= 1;
352
352
#ifdef WORDS_BIGENDIAN
353
353
  if (table && table->s->db_low_byte_first)
430
430
 
431
431
void Field_timestamp::set_time()
432
432
{
433
 
  THD *thd= table ? table->in_use : current_thd;
 
433
  Session *thd= table ? table->in_use : current_thd;
434
434
  long tmp= (long) thd->query_start();
435
435
  set_notnull();
436
436
  store_timestamp(tmp);