~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Stewart Smith
  • Date: 2010-07-26 18:50:01 UTC
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100726185001-ljgjs0lexpmijjtg
separate out adding the foreign key to the table protobuf message from mysql_prepare_create_table and call a function to do it directly from the parser where we set up the foreign key structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
1401
1401
                                      statement->fk_delete_opt,
1402
1402
                                      statement->fk_update_opt,
1403
1403
                                      statement->fk_match_option);
 
1404
 
 
1405
            add_foreign_key_to_table_message(&(statement->create_table_message),
 
1406
                                             $4.str ? $4.str : $1.str,
 
1407
                                             lex->col_list,
 
1408
                                             $8,
 
1409
                                             lex->ref_list,
 
1410
                                             statement->fk_delete_opt,
 
1411
                                             statement->fk_update_opt,
 
1412
                                             statement->fk_match_option);
 
1413
 
1404
1414
            statement->alter_info.key_list.push_back(key);
1405
1415
            key= new Key(Key::MULTIPLE, $1.str ? $1 : $4,
1406
1416
                         &default_key_create_info, 1,