~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/parser.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:55:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024215516-eu30mb3yhh9a28zq
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
  return true;
409
409
}
410
410
 
411
 
void buildKey(LEX *lex, Key::Keytype type_par, const lex_string_t &name_arg)
 
411
void buildKey(LEX *lex, Key::Keytype type_par, str_ref name_arg)
412
412
{
413
413
  statement::AlterTable *statement= (statement::AlterTable *)lex->statement;
414
414
  Key *key= new Key(type_par, name_arg, &statement->key_create_info, 0, lex->col_list);
416
416
  lex->col_list.clear(); /* Alloced by memory::sql_alloc */
417
417
}
418
418
 
419
 
void buildForeignKey(LEX *lex, const lex_string_t &name_arg, drizzled::Table_ident *table)
 
419
void buildForeignKey(LEX *lex, str_ref name_arg, drizzled::Table_ident *table)
420
420
{
421
421
  statement::AlterTable *statement= (statement::AlterTable *)lex->statement;
422
422
  statement->alter_info.key_list.push_back(new Foreign_key(name_arg, lex->col_list, table, lex->ref_list,