~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2010-11-11 23:42:09 UTC
  • mto: (1932.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1930.
  • Revision ID: brian@tangent.org-20101111234209-u3j07lya1dhcon45
Adding in concurrent execute support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
830
830
        start_transaction_opts opt_chain opt_release
831
831
        union_opt select_derived_init option_type2
832
832
        opt_status
 
833
        opt_concurrent
833
834
 
834
835
%type <m_fk_option>
835
836
        delete_option
4473
4474
  */
4474
4475
 
4475
4476
execute:
4476
 
       EXECUTE_SYM execute_var_or_string opt_status
 
4477
       EXECUTE_SYM execute_var_or_string opt_status opt_concurrent
4477
4478
       {
4478
4479
          LEX *lex= Lex;
4479
 
          statement::Execute *statement= new(std::nothrow) statement::Execute(YYSession, $2, $3);
 
4480
          statement::Execute *statement= new(std::nothrow) statement::Execute(YYSession, $2, $3, $4);
4480
4481
          lex->statement= statement;
4481
4482
          if (lex->statement == NULL)
4482
4483
            DRIZZLE_YYABORT;
4499
4500
        | WITH NO_SYM RETURN_SYM { $$= 1; }
4500
4501
        ;
4501
4502
 
 
4503
opt_concurrent:
 
4504
          /* empty */ { $$= 0; }
 
4505
        | CONCURRENT { $$= 1; }
 
4506
        ;
 
4507
 
4502
4508
/*
4503
4509
** Insert : add new data to table
4504
4510
*/