1497
Lex->length=(char*) 0; /* use default length */
1498
statement::CreateTable *statement=
1499
(statement::CreateTable *)Lex->statement;
1501
if (statement->current_proto_field)
1503
if ($1 == DRIZZLE_TYPE_LONG)
1504
statement->current_proto_field->set_type(message::Table::Field::INTEGER);
1505
else if ($1 == DRIZZLE_TYPE_LONGLONG)
1506
statement->current_proto_field->set_type(message::Table::Field::BIGINT);
1500
int_type ignored_field_number_length opt_field_number_signed opt_zerofill
1503
Lex->length=(char*) 0; /* use default length */
1504
statement::CreateTable *statement=
1505
(statement::CreateTable *)Lex->statement;
1509
$1= DRIZZLE_TYPE_LONGLONG;
1512
if (statement->current_proto_field)
1514
assert ($1 == DRIZZLE_TYPE_LONG or $1 == DRIZZLE_TYPE_LONGLONG);
1515
// We update the type for unsigned types
1518
statement->current_proto_field->set_type(message::Table::Field::BIGINT);
1519
statement->current_proto_field->mutable_constraints()->set_is_unsigned(true);
1521
if ($1 == DRIZZLE_TYPE_LONG)
1523
statement->current_proto_field->set_type(message::Table::Field::INTEGER);
1525
else if ($1 == DRIZZLE_TYPE_LONGLONG)
1527
statement->current_proto_field->set_type(message::Table::Field::BIGINT);
1511
1531
| real_type opt_precision
1692
1712
if (statement->current_proto_field)
1693
1713
statement->current_proto_field->set_type(message::Table::Field::ENUM);
1717
$$=DRIZZLE_TYPE_UUID;
1719
statement::CreateTable *statement=
1720
(statement::CreateTable *)Lex->statement;
1722
if (statement->current_proto_field)
1723
statement->current_proto_field->set_type(message::Table::Field::UUID);
1697
1727
$$=DRIZZLE_TYPE_LONGLONG;
3319
3365
DRIZZLE_YYABORT;
3370
if (! ($$= reserved_keyword_function(YYSession, "uuid", NULL)))
3374
Lex->setCacheable(false);
3322
3376
| WAIT_SYM '(' expr ',' expr ')'
3324
3378
std::string wait_str("wait");