~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Mark Atwood
  • Date: 2011-06-30 03:10:01 UTC
  • mfrom: (2324.3.5 include-keywords-spi)
  • Revision ID: me@mark.atwood.name-20110630031001-yttctixy3za12pi2
mergeĀ lp:~vjsamuel/drizzle/include-keyword-procedure

Show diffs side-by-side

added added

removed removed

Lines of Context:
434
434
%token  PRECISION                     /* SQL-2003-R */
435
435
%token  PREV_SYM
436
436
%token  PRIMARY_SYM                   /* SQL-2003-R */
 
437
%token  PROCEDURE
437
438
%token  PROCESS
438
439
%token  PROCESSLIST_SYM
439
440
%token  QUARTER_SYM
893
894
          {
894
895
            Lex.name= $4;
895
896
          }
 
897
        | CREATE PROCEDURE proc_name
 
898
          {
 
899
            Lex.statement= new statement::CreateProcedure(YYSession);
 
900
          }
896
901
        ;
897
902
 
898
903
create_table_definition:
4208
4213
            statement->drop_if_exists=$3;
4209
4214
            Lex.name= $4;
4210
4215
          }
 
4216
        | DROP PROCEDURE proc_name
 
4217
          {
 
4218
            /*code goes here*/
 
4219
          }
4211
4220
        ;
4212
4221
 
4213
4222
table_list:
5142
5151
catalog_name:
5143
5152
          ident
5144
5153
        ;
 
5154
        
 
5155
proc_name:
 
5156
          ident
 
5157
        ;
5145
5158
 
5146
5159
IDENT_sys:
5147
5160
          IDENT