~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

MergedĀ fromĀ Mats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2950
2950
  uint keys= schema_table->table->s->keys;
2951
2951
  uint db_options= 0;
2952
2952
 
2953
 
  memset((char*) &local_create_info, 0, sizeof(local_create_info));
 
2953
  memset(&local_create_info, 0, sizeof(local_create_info));
2954
2954
  local_create_info.db_type= schema_table->table->s->db_type();
2955
2955
  local_create_info.row_type= schema_table->table->s->row_type;
2956
2956
  local_create_info.default_table_charset=default_charset_info;
4315
4315
      KEY_CREATE_INFO key_create_info;
4316
4316
      Key *key;
4317
4317
      enum Key::Keytype key_type;
4318
 
      memset((char*) &key_create_info, 0, sizeof(key_create_info));
 
4318
      memset(&key_create_info, 0, sizeof(key_create_info));
4319
4319
 
4320
4320
      key_create_info.algorithm= key_info->algorithm;
4321
4321
      if (key_info->flags & HA_USES_BLOCK_SIZE)
4890
4890
  if (table->s->tmp_table)
4891
4891
  {
4892
4892
    TABLE_LIST tbl;
4893
 
    memset((void*) &tbl, 0, sizeof(tbl));
 
4893
    memset(&tbl, 0, sizeof(tbl));
4894
4894
    tbl.db= new_db;
4895
4895
    tbl.table_name= tbl.alias= tmp_name;
4896
4896
    /* Table is in thd->temporary_tables */
5271
5271
    {
5272
5272
      from->sort.io_cache=(IO_CACHE*) my_malloc(sizeof(IO_CACHE),
5273
5273
                                                MYF(MY_FAE | MY_ZEROFILL));
5274
 
      memset((char *) &tables, 0, sizeof(tables));
 
5274
      memset(&tables, 0, sizeof(tables));
5275
5275
      tables.table= from;
5276
5276
      tables.alias= tables.table_name= from->s->table_name.str;
5277
5277
      tables.db= from->s->db.str;
5417
5417
  */
5418
5418
  table_list->table= NULL;
5419
5419
 
5420
 
  memset((char*) &create_info, 0, sizeof(create_info));
 
5420
  memset(&create_info, 0, sizeof(create_info));
5421
5421
  create_info.row_type=ROW_TYPE_NOT_USED;
5422
5422
  create_info.default_table_charset=default_charset_info;
5423
5423
  /* Force alter table to recreate table */