~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2010-12-08 03:38:36 UTC
  • mto: This revision was merged to the branch mainline in revision 1987.
  • Revision ID: brian@tangent.org-20101208033836-d0pacr0sjcd3py2w
Added WAIT to the execute() function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3254
3254
            }
3255
3255
            Lex->setCacheable(false);
3256
3256
          }
3257
 
        | EXECUTE_SYM '(' expr ')'
 
3257
        | EXECUTE_SYM '(' expr ')' opt_wait
3258
3258
          {
3259
3259
            List<Item> *args= new (YYSession->mem_root) List<Item>;
3260
3260
            args->push_back($3);
3261
3261
 
 
3262
            if ($5)
 
3263
            {
 
3264
              args->push_back(new (YYSession->mem_root) Item_int(1));
 
3265
            }
 
3266
 
3262
3267
            if (! ($$= reserved_keyword_function(YYSession, "execute", args)))
3263
3268
            {
3264
3269
              DRIZZLE_YYABORT;