~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/parser.cc

  • Committer: Brian Aker
  • Date: 2011-02-18 16:48:57 UTC
  • mfrom: (2180.1.3 drizzle-staging)
  • Revision ID: brian@tangent.org-20110218164857-4n61en8wai9c91gi
Rollup all of Olaf's branch.

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
}