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

sql_yacc.yy:

  character set binary didn't work
parent 59ed38fd
...@@ -1140,7 +1140,15 @@ attribute: ...@@ -1140,7 +1140,15 @@ attribute:
| COMMENT_SYM text_literal { Lex->comment= $2; }; | COMMENT_SYM text_literal { Lex->comment= $2; };
charset_name: charset_name:
ident BINARY
{
if (!($$=get_charset_by_name("binary",MYF(0))))
{
net_printf(current_thd,ER_UNKNOWN_CHARACTER_SET,"binary");
YYABORT;
}
}
| ident
{ {
if (!($$=get_charset_by_name($1.str,MYF(0)))) if (!($$=get_charset_by_name($1.str,MYF(0))))
{ {
......
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