Commit 8f86a0d3 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

sql_yacc.yy:

  Reduce/reduce conflict
  fix. 
parent 45329852
...@@ -4339,18 +4339,18 @@ option_value: ...@@ -4339,18 +4339,18 @@ option_value:
find_sys_var("tx_isolation"), find_sys_var("tx_isolation"),
new Item_int((int32) $4))); new Item_int((int32) $4)));
} }
| charset opt_equal set_expr_or_default | charset set_expr_or_default
{ {
THD *thd= YYTHD; THD *thd= YYTHD;
LEX *lex= &thd->lex; LEX *lex= &thd->lex;
if (!$3) if (!$2)
{ {
CHARSET_INFO *cl= thd->db_charset; CHARSET_INFO *cl= thd->db_charset;
$3= new Item_string(cl->name, strlen(cl->name), &my_charset_latin1); $2= new Item_string(cl->name, strlen(cl->name), &my_charset_latin1);
} }
lex->var_list.push_back(new set_var(lex->option_type, lex->var_list.push_back(new set_var(lex->option_type,
find_sys_var("client_collation"), find_sys_var("client_collation"),
$3)); $2));
} }
| NAMES_SYM charset_name_or_default opt_collate | NAMES_SYM charset_name_or_default opt_collate
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment