133
133
drizzled::lex_string_t *lex_str_ptr;
134
134
drizzled::LEX_SYMBOL symbol;
135
135
drizzled::Table_ident *table;
136
const char* simple_string;
137
137
drizzled::Item *item;
138
138
drizzled::Item_num *item_num;
139
139
drizzled::List<drizzled::Item> *item_list;
1578
1578
| DEFAULT NOW_SYM optional_braces
1580
statement::AlterTable *statement= (statement::AlterTable *)Lex.statement;
1580
statement::AlterTable *statement= (statement::AlterTable*)Lex.statement;
1582
1582
statement->default_value= new Item_func_now_local();
1583
1583
statement->alter_info.flags.set(ALTER_COLUMN_DEFAULT);
1585
1585
| DEFAULT date_literal
1587
statement::AlterTable *statement= (statement::AlterTable *)Lex.statement;
1587
statement::AlterTable *statement= (statement::AlterTable*)Lex.statement;
1589
1589
statement->default_value=$2;
1590
1590
statement->alter_info.flags.set(ALTER_COLUMN_DEFAULT);
1592
1592
| ON UPDATE_SYM NOW_SYM optional_braces
1594
((statement::AlterTable *)Lex.statement)->on_update_value= new Item_func_now_local();
1594
((statement::AlterTable*)Lex.statement)->on_update_value= new Item_func_now_local();
1596
1596
| opt_attribute_index
1661
1661
opt_match_clause:
1663
{ ((statement::CreateTable *)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_UNDEFINED; }
1663
{ ((statement::CreateTable*)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_UNDEFINED; }
1665
{ ((statement::CreateTable *)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_FULL; }
1665
{ ((statement::CreateTable*)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_FULL; }
1666
1666
| MATCH PARTIAL
1667
{ ((statement::CreateTable *)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_PARTIAL; }
1667
{ ((statement::CreateTable*)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_PARTIAL; }
1668
1668
| MATCH SIMPLE_SYM
1669
{ ((statement::CreateTable *)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_SIMPLE; }
1669
{ ((statement::CreateTable*)Lex.statement)->fk_match_option= drizzled::message::Table::ForeignKeyConstraint::MATCH_SIMPLE; }
1672
1672
opt_on_update_delete:
1675
((statement::CreateTable *)Lex.statement)->fk_update_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1676
((statement::CreateTable *)Lex.statement)->fk_delete_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1675
((statement::CreateTable*)Lex.statement)->fk_update_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1676
((statement::CreateTable*)Lex.statement)->fk_delete_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1678
1678
| ON UPDATE_SYM delete_option
1680
((statement::CreateTable *)Lex.statement)->fk_update_opt= $3;
1681
((statement::CreateTable *)Lex.statement)->fk_delete_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1680
((statement::CreateTable*)Lex.statement)->fk_update_opt= $3;
1681
((statement::CreateTable*)Lex.statement)->fk_delete_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1683
1683
| ON DELETE_SYM delete_option
1685
((statement::CreateTable *)Lex.statement)->fk_update_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1686
((statement::CreateTable *)Lex.statement)->fk_delete_opt= $3;
1685
((statement::CreateTable*)Lex.statement)->fk_update_opt= drizzled::message::Table::ForeignKeyConstraint::OPTION_UNDEF;
1686
((statement::CreateTable*)Lex.statement)->fk_delete_opt= $3;
1688
1688
| ON UPDATE_SYM delete_option
1689
1689
ON DELETE_SYM delete_option
2358
2358
Lex_input_stream *lip= YYSession->m_lip;
2359
$$= (char*) lip->get_cpp_tok_start();
2359
$$= lip->get_cpp_tok_start();
2365
2365
Lex_input_stream *lip= YYSession->m_lip;
2366
$$= (char*) lip->get_cpp_tok_end();
2366
$$= lip->get_cpp_tok_end();
3297
3297
{ $$=ITEM_CAST_BOOLEAN; Lex.charset= &my_charset_bin; Lex.dec= 0; }
3299
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3299
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3300
3300
| SIGNED_SYM INT_SYM
3301
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3301
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3303
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3303
{ $$=ITEM_CAST_SIGNED; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3305
{ $$=ITEM_CAST_UNSIGNED; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3305
{ $$=ITEM_CAST_UNSIGNED; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3306
3306
| UNSIGNED_SYM INT_SYM
3307
{ $$=ITEM_CAST_UNSIGNED; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3307
{ $$=ITEM_CAST_UNSIGNED; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3308
3308
| CHAR_SYM opt_len
3309
3309
{ $$=ITEM_CAST_CHAR; Lex.dec= 0; }
3311
{ $$=ITEM_CAST_DATE; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3311
{ $$=ITEM_CAST_DATE; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3313
{ $$=ITEM_CAST_TIME; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3313
{ $$=ITEM_CAST_TIME; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3315
{ $$=ITEM_CAST_DATETIME; Lex.charset= NULL; Lex.dec=Lex.length= (char*)0; }
3315
{ $$=ITEM_CAST_DATETIME; Lex.charset= NULL; Lex.dec=Lex.length= NULL; }
3316
3316
| DECIMAL_SYM float_options
3317
3317
{ $$=ITEM_CAST_DECIMAL; Lex.charset= NULL; }
3807
3807
opt_key_usage_list:
3808
/* empty */ { Lex.current_select->add_index_hint(YYSession, NULL, 0); }
3808
/* empty */ { Lex.current_select->add_index_hint(YYSession, NULL); }
3809
3809
| key_usage_list {}
3812
3812
key_usage_element:
3814
{ Lex.current_select->add_index_hint(YYSession, $1.str, $1.length); }
3814
{ Lex.current_select->add_index_hint(YYSession, $1.str); }
3816
{ Lex.current_select->add_index_hint(YYSession, (char *)"PRIMARY", 7); }
3816
{ Lex.current_select->add_index_hint(YYSession, "PRIMARY"); }
3819
3819
key_usage_list:
3827
3827
$$= new List<String>;
3828
$$->push_back(new (YYSession->mem_root)
3829
String((const char *) $1.str, $1.length,
3830
system_charset_info));
3828
$$->push_back(new (YYSession->mem_root) String($1.str, $1.length, system_charset_info));
3832
3830
| using_list ',' ident
3834
$1->push_back(new (YYSession->mem_root)
3835
String((const char *) $3.str, $3.length,
3836
system_charset_info));
3832
$1->push_back(new (YYSession->mem_root) String($3.str, $3.length, system_charset_info));
4106
NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, (char**) 0, &error); }
4107
| HEX_NUM { $$= (unsigned long) strtol($1.str, (char**) 0, 16); }
4108
| LONG_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, (char**) 0, &error); }
4109
| ULONGLONG_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, (char**) 0, &error); }
4110
| DECIMAL_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, (char**) 0, &error); }
4111
| FLOAT_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, (char**) 0, &error); }
4102
NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, NULL, &error); }
4103
| HEX_NUM { $$= (unsigned long) strtol($1.str, NULL, 16); }
4104
| LONG_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, NULL, &error); }
4105
| ULONGLONG_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, NULL, &error); }
4106
| DECIMAL_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, NULL, &error); }
4107
| FLOAT_NUM { int error; $$= (unsigned long) internal::my_strtoll10($1.str, NULL, &error); }
4115
NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, (char**) 0, &error); }
4116
| ULONGLONG_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, (char**) 0, &error); }
4117
| LONG_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, (char**) 0, &error); }
4118
| DECIMAL_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, (char**) 0, &error); }
4119
| FLOAT_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, (char**) 0, &error); }
4111
NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, NULL, &error); }
4112
| ULONGLONG_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, NULL, &error); }
4113
| LONG_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, NULL, &error); }
4114
| DECIMAL_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, NULL, &error); }
4115
| FLOAT_NUM { int error; $$= (uint64_t) internal::my_strtoll10($1.str, NULL, &error); }
4122
4118
select_var_list_init: