~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2010-12-24 05:50:22 UTC
  • mto: (2035.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2030.
  • Revision ID: brian@tangent.org-20101224055022-kcdt5djgx3o2z4sx
Merge in BOOL type. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1733
1733
            if (statement->current_proto_field)
1734
1734
              statement->current_proto_field->set_type(message::Table::Field::UUID);
1735
1735
          }
 
1736
        | BOOL_SYM
 
1737
        {
 
1738
          $$=DRIZZLE_TYPE_BOOL;
 
1739
 
 
1740
          statement::CreateTable *statement=
 
1741
            (statement::CreateTable *)Lex->statement;
 
1742
 
 
1743
          if (statement->current_proto_field)
 
1744
            statement->current_proto_field->set_type(message::Table::Field::BOOL);
 
1745
        }
 
1746
        | BOOLEAN_SYM
 
1747
        {
 
1748
          $$=DRIZZLE_TYPE_BOOL;
 
1749
 
 
1750
          statement::CreateTable *statement=
 
1751
            (statement::CreateTable *)Lex->statement;
 
1752
 
 
1753
          if (statement->current_proto_field)
 
1754
            statement->current_proto_field->set_type(message::Table::Field::BOOL);
 
1755
        }
1736
1756
        | SERIAL_SYM
1737
1757
          {
1738
1758
            $$=DRIZZLE_TYPE_LONGLONG;