summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy12
1 files changed, 2 insertions, 10 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 5ab53a1b934..fe8f0b2b2ee 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -664,7 +664,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%type <ha_rkey_mode> handler_rkey_mode
-%type <cast_type> cast_type cast_type_finalize
+%type <cast_type> cast_type
%type <udf_type> udf_func_type
@@ -3003,11 +3003,7 @@ in_sum_expr:
$$= $3;
};
-cast_type_init:
- { Lex->charset= NULL; Lex->length= (char*)0; }
- ;
-
-cast_type_finalize:
+cast_type:
BINARY { $$=ITEM_CAST_BINARY; }
| CHAR_SYM opt_len opt_binary { $$=ITEM_CAST_CHAR; }
| NCHAR_SYM opt_len { $$=ITEM_CAST_CHAR; Lex->charset= national_charset_info; }
@@ -3020,10 +3016,6 @@ cast_type_finalize:
| DATETIME { $$=ITEM_CAST_DATETIME; }
;
-cast_type:
- cast_type_init cast_type_finalize { $$= $2; }
- ;
-
expr_list:
{ Select->expr_list.push_front(new List<Item>); }
expr_list2