~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/parser.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-18 10:22:24 UTC
  • mto: (2180.1.3 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2181.
  • Revision ID: olafvdspek@gmail.com-20110218102224-bjqbn4734ylsol0u
Rename List::empty to clear (std::list uses clear)

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
  Key *key= new Key(type_par, name_arg, &statement->key_create_info, 0,
429
429
                    lex->col_list);
430
430
  statement->alter_info.key_list.push_back(key);
431
 
  lex->col_list.empty(); /* Alloced by memory::sql_alloc */
 
431
  lex->col_list.clear(); /* Alloced by memory::sql_alloc */
432
432
}
433
433
 
434
434
void buildForeignKey(LEX *lex, const lex_string_t &name_arg, drizzled::Table_ident *table)
446
446
               &default_key_create_info, 1,
447
447
               lex->col_list);
448
448
  statement->alter_info.key_list.push_back(key);
449
 
  lex->col_list.empty(); /* Alloced by memory::sql_alloc */
 
449
  lex->col_list.clear(); /* Alloced by memory::sql_alloc */
450
450
  /* Only used for ALTER TABLE. Ignored otherwise. */
451
451
  statement->alter_info.flags.set(ALTER_FOREIGN_KEY);
452
452
}