~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2011-01-05 17:21:13 UTC
  • mto: (2057.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2064.
  • Revision ID: brian@tangent.org-20110105172113-s7mng3puod6o9n3y
Add basic tests for microtime.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1641
1641
          | TIMESTAMP_SYM
1642
1642
          {
1643
1643
            $$=DRIZZLE_TYPE_TIMESTAMP;
 
1644
            Lex->length= 0;
1644
1645
 
1645
1646
            statement::CreateTable *statement=
1646
1647
              (statement::CreateTable *)Lex->statement;
1651
1652
          | MICROSECOND_SYM TIMESTAMP_SYM
1652
1653
          {
1653
1654
            $$=DRIZZLE_TYPE_MICROTIME;
 
1655
            Lex->length= 0;
1654
1656
 
1655
1657
            statement::CreateTable *statement=
1656
1658
              (statement::CreateTable *)Lex->statement;
1909
1911
            statement->alter_info.flags.set(ALTER_COLUMN_DEFAULT);
1910
1912
          }
1911
1913
        | ON UPDATE_SYM NOW_SYM optional_braces
1912
 
          { ((statement::AlterTable *)Lex->statement)->on_update_value= new Item_func_now_local(); }
 
1914
          {
 
1915
            ((statement::AlterTable *)Lex->statement)->on_update_value= new Item_func_now_local();
 
1916
          }
1913
1917
        | AUTO_INC
1914
1918
          {
1915
1919
            Lex->type|= AUTO_INCREMENT_FLAG | NOT_NULL_FLAG;