~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

Removing redundant use of casts in drizzled/ for memcmp(), memcpy(), memset(), and memmove().
Adding non-const version of String::ptr() to provide covariance on const:ness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2954
2954
  uint keys= schema_table->table->s->keys;
2955
2955
  uint db_options= 0;
2956
2956
 
2957
 
  memset((char*) &local_create_info, 0, sizeof(local_create_info));
 
2957
  memset(&local_create_info, 0, sizeof(local_create_info));
2958
2958
  local_create_info.db_type= schema_table->table->s->db_type();
2959
2959
  local_create_info.row_type= schema_table->table->s->row_type;
2960
2960
  local_create_info.default_table_charset=default_charset_info;
4321
4321
      KEY_CREATE_INFO key_create_info;
4322
4322
      Key *key;
4323
4323
      enum Key::Keytype key_type;
4324
 
      memset((char*) &key_create_info, 0, sizeof(key_create_info));
 
4324
      memset(&key_create_info, 0, sizeof(key_create_info));
4325
4325
 
4326
4326
      key_create_info.algorithm= key_info->algorithm;
4327
4327
      if (key_info->flags & HA_USES_BLOCK_SIZE)
4896
4896
  if (table->s->tmp_table)
4897
4897
  {
4898
4898
    TABLE_LIST tbl;
4899
 
    memset((void*) &tbl, 0, sizeof(tbl));
 
4899
    memset(&tbl, 0, sizeof(tbl));
4900
4900
    tbl.db= new_db;
4901
4901
    tbl.table_name= tbl.alias= tmp_name;
4902
4902
    /* Table is in thd->temporary_tables */
5277
5277
    {
5278
5278
      from->sort.io_cache=(IO_CACHE*) my_malloc(sizeof(IO_CACHE),
5279
5279
                                                MYF(MY_FAE | MY_ZEROFILL));
5280
 
      memset((char *) &tables, 0, sizeof(tables));
 
5280
      memset(&tables, 0, sizeof(tables));
5281
5281
      tables.table= from;
5282
5282
      tables.alias= tables.table_name= from->s->table_name.str;
5283
5283
      tables.db= from->s->db.str;
5423
5423
  */
5424
5424
  table_list->table= NULL;
5425
5425
 
5426
 
  memset((char*) &create_info, 0, sizeof(create_info));
 
5426
  memset(&create_info, 0, sizeof(create_info));
5427
5427
  create_info.row_type=ROW_TYPE_NOT_USED;
5428
5428
  create_info.default_table_charset=default_charset_info;
5429
5429
  /* Force alter table to recreate table */