~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2011-01-13 02:08:31 UTC
  • mto: (2079.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110113020831-gionzccgg17efwn7
Basic DDL for catalog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
%token  CASCADED                      /* SQL-2003-R */
453
453
%token  CASE_SYM                      /* SQL-2003-R */
454
454
%token  CAST_SYM                      /* SQL-2003-R */
 
455
%token  CATALOG_SYM
455
456
%token  CHAIN_SYM                     /* SQL-2003-N */
456
457
%token  CHANGE_SYM
457
458
%token  CHAR_SYM                      /* SQL-2003-R */
805
806
        row_format_or_text
806
807
        IDENT_sys TEXT_STRING_sys TEXT_STRING_literal
807
808
        schema_name
 
809
        catalog_name
808
810
        opt_component
809
811
        engine_option_value
810
812
        savepoint_ident
1053
1055
/* create a table */
1054
1056
 
1055
1057
create:
1056
 
          CREATE opt_table_options TABLE_SYM opt_if_not_exists table_ident
 
1058
          CREATE CATALOG_SYM catalog_name
 
1059
          {
 
1060
            Lex->statement= new statement::catalog::Create(YYSession, $3);
 
1061
          }
 
1062
        | CREATE opt_table_options TABLE_SYM opt_if_not_exists table_ident
1057
1063
          {
1058
1064
            Lex->sql_command= SQLCOM_CREATE_TABLE;
1059
1065
            Lex->statement= new statement::CreateTable(YYSession);
4428
4434
*/
4429
4435
 
4430
4436
drop:
4431
 
          DROP opt_temporary table_or_tables if_exists table_list
 
4437
          DROP CATALOG_SYM catalog_name
 
4438
          {
 
4439
            Lex->statement= new statement::catalog::Drop(YYSession, $3);
 
4440
          }
 
4441
        | DROP opt_temporary table_or_tables if_exists table_list
4432
4442
          {
4433
4443
            Lex->sql_command = SQLCOM_DROP_TABLE;
4434
4444
            statement::DropTable *statement= new statement::DropTable(YYSession);
5830
5840
          ident
5831
5841
        ;
5832
5842
 
 
5843
catalog_name:
 
5844
          ident
 
5845
        ;
 
5846
 
5833
5847
IDENT_sys:
5834
5848
          IDENT 
5835
5849
          {