~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.cc

  • Committer: Brian Aker
  • Date: 2008-07-29 07:47:38 UTC
  • mfrom: (212.6.1 bzero-memset)
  • Revision ID: brian@tangent.org-20080729074738-lfzim6htapm42f2o
MergeĀ fromĀ Mats

Show diffs side-by-side

added added

removed removed

Lines of Context:
527
527
  utime_after_lock= 0L;
528
528
  current_linfo =  0;
529
529
  slave_thread = 0;
530
 
  bzero(&variables, sizeof(variables));
 
530
  memset(&variables, 0, sizeof(variables));
531
531
  thread_id= 0;
532
532
  one_shot_set= 0;
533
533
  file_id = 0;
534
534
  query_id= 0;
535
535
  warn_id= 0;
536
536
  db_charset= global_system_variables.collation_database;
537
 
  bzero(ha_data, sizeof(ha_data));
 
537
  memset(ha_data, 0, sizeof(ha_data));
538
538
  mysys_var=0;
539
539
  binlog_evt_union.do_union= false;
540
540
  enable_slow_log= 0;
572
572
    my_init_dynamic_array(&user_var_events,
573
573
                          sizeof(BINLOG_USER_VAR_EVENT *), 16, 16);
574
574
  else
575
 
    bzero((char*) &user_var_events, sizeof(user_var_events));
 
575
    memset(&user_var_events, 0, sizeof(user_var_events));
576
576
 
577
577
  /* Protocol */
578
578
  protocol= &protocol_text;                     // Default protocol
699
699
                        TL_WRITE);
700
700
  session_tx_isolation= (enum_tx_isolation) variables.tx_isolation;
701
701
  warn_list.empty();
702
 
  bzero((char*) warn_count, sizeof(warn_count));
 
702
  memset((char*) warn_count, 0, sizeof(warn_count));
703
703
  total_warn_count= 0;
704
704
  update_charset();
705
705
  reset_current_stmt_binlog_row_based();
706
 
  bzero((char *) &status_var, sizeof(status_var));
 
706
  memset((char *) &status_var, 0, sizeof(status_var));
707
707
}
708
708
 
709
709
 
2280
2280
 
2281
2281
void THD::set_status_var_init()
2282
2282
{
2283
 
  bzero((char*) &status_var, sizeof(status_var));
 
2283
  memset((char*) &status_var, 0, sizeof(status_var));
2284
2284
}
2285
2285
 
2286
2286