~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2011-01-04 06:04:30 UTC
  • mto: (2057.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2064.
  • Revision ID: brian@tangent.org-20110104060430-arffzxxmxhhtiy23
Basic support added for microstamp as alias to epoch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1648
1648
            if (statement->current_proto_field)
1649
1649
              statement->current_proto_field->set_type(message::Table::Field::EPOCH);
1650
1650
          }
1651
 
          | LONG_SYM TIMESTAMP_SYM
 
1651
          | MICROSECOND_SYM TIMESTAMP_SYM
1652
1652
          {
1653
 
            $$=DRIZZLE_TYPE_TIMESTAMP;
 
1653
            $$=DRIZZLE_TYPE_MICROTIME;
1654
1654
 
1655
1655
            statement::CreateTable *statement=
1656
1656
              (statement::CreateTable *)Lex->statement;
1657
1657
 
1658
1658
            if (statement->current_proto_field)
1659
1659
            {
1660
 
              statement->current_proto_field->set_type(message::Table::Field::EPOCH);
 
1660
              statement->current_proto_field->set_type(message::Table::Field::MICROTIME);
1661
1661
              statement->current_proto_field->mutable_time_options()->set_microseconds(true);
1662
1662
            }
1663
1663
          }