~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-09-21 14:47:59 UTC
  • Revision ID: brian@tangent.org-20080921144759-bfl0nnj6ntkp55cu
Remove tiny/small int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
756
756
%token  SIGNED_SYM
757
757
%token  SIMPLE_SYM                    /* SQL-2003-N */
758
758
%token  SLAVE
759
 
%token  SMALLINT                      /* SQL-2003-R */
760
759
%token  SNAPSHOT_SYM
761
760
%token  SOCKET_SYM
762
761
%token  SONAME_SYM
806
805
%token  TIMESTAMP_ADD
807
806
%token  TIMESTAMP_DIFF
808
807
%token  TIME_SYM                      /* SQL-2003-R */
809
 
%token  TINYINT
810
808
%token  TO_SYM                        /* SQL-2003-R */
811
809
%token  TRAILING                      /* SQL-2003-R */
812
810
%token  TRANSACTION_SYM
1741
1739
          Lex->length=(char*) 0; /* use default length */
1742
1740
        }
1743
1741
        | real_type opt_precision field_options { $$=$1; }
1744
 
        | BIT_SYM
1745
 
          {
1746
 
            Lex->length= (char*) "1";
1747
 
            $$=DRIZZLE_TYPE_TINY;
1748
 
          }
1749
 
        | BOOL_SYM
1750
 
          {
1751
 
            Lex->length=(char*) "1";
1752
 
            $$=DRIZZLE_TYPE_TINY;
1753
 
          }
1754
 
        | BOOLEAN_SYM
1755
 
          {
1756
 
            Lex->length=(char*) "1";
1757
 
            $$=DRIZZLE_TYPE_TINY;
1758
 
          }
1759
1742
        | char '(' NUM ')' opt_binary
1760
1743
          {
1761
1744
            Lex->length=$3.str;
1829
1812
 
1830
1813
int_type:
1831
1814
          INT_SYM   { $$=DRIZZLE_TYPE_LONG; }
1832
 
        | TINYINT   { $$=DRIZZLE_TYPE_TINY; }
1833
 
        | SMALLINT  { $$=DRIZZLE_TYPE_SHORT; }
1834
1815
        | BIGINT    { $$=DRIZZLE_TYPE_LONGLONG; }
1835
1816
        ;
1836
1817