sql_yacc.yy:

character set binary didn't work
This commit is contained in:
bar@bar.mysql.r18.ru 2002-10-23 16:00:48 +05:00
parent 59ed38fdf7
commit e46fce4b99

View File

@ -1140,7 +1140,15 @@ attribute:
| COMMENT_SYM text_literal { Lex->comment= $2; };
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))))
{