~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Jay Pipes
  • Date: 2009-02-28 17:49:22 UTC
  • mto: (910.2.6 mordred-noatomics)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090228174922-jczgt4d0662fqmnf
Merging in old r902 temporal changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
639
639
{
640
640
  pthread_mutex_lock(&LOCK_global_system_variables);
641
641
  plugin_sessionvar_init(this);
642
 
  variables.time_format= date_time_format_copy((Session*) 0,
643
 
                                               variables.time_format);
644
 
  variables.date_format= date_time_format_copy((Session*) 0,
645
 
                                               variables.date_format);
646
 
  variables.datetime_format= date_time_format_copy((Session*) 0,
647
 
                                                   variables.datetime_format);
648
642
  /*
649
643
    variables= global_system_variables above has reset
650
644
    variables.pseudo_thread_id to 0. We need to correct it here to
718
712
  mysql_ha_cleanup(this);
719
713
  hash_free(&user_vars);
720
714
  close_temporary_tables();
721
 
  free((char*) variables.time_format);
722
 
  free((char*) variables.date_format);
723
 
  free((char*) variables.datetime_format);
724
715
 
725
716
  if (global_read_lock)
726
717
    unlock_global_read_lock(this);