~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-08-11 23:20:41 UTC
  • Revision ID: brian@tangent.org-20080811232041-h9ydp3um89b1pbvm
Clean up UNION in CREATE TABLE statement

Show diffs side-by-side

added added

removed removed

Lines of Context:
1543
1543
            Lex->create_info.used_fields|= HA_CREATE_USED_ROW_FORMAT;
1544
1544
            Lex->alter_info.flags|= ALTER_ROW_FORMAT;
1545
1545
          }
1546
 
        | UNION_SYM opt_equal '(' opt_table_list ')'
1547
 
          {
1548
 
            /* Move the union list to the merge_list */
1549
 
            LEX *lex=Lex;
1550
 
            TABLE_LIST *table_list= lex->select_lex.get_table_list();
1551
 
            lex->create_info.merge_list= lex->select_lex.table_list;
1552
 
            lex->create_info.merge_list.elements--;
1553
 
            lex->create_info.merge_list.first=
1554
 
              (uchar*) (table_list->next_local);
1555
 
            lex->select_lex.table_list.elements=1;
1556
 
            lex->select_lex.table_list.next=
1557
 
              (uchar**) &(table_list->next_local);
1558
 
            table_list->next_local= 0;
1559
 
            lex->create_info.used_fields|= HA_CREATE_USED_UNION;
1560
 
          }
1561
1546
        | default_charset
1562
1547
        | default_collation
1563
1548
        | DATA_SYM DIRECTORY_SYM opt_equal TEXT_STRING_sys