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

sql_yacc.yy, lex.h:

  SET NAMES is now working
parent ace0eac6
...@@ -93,6 +93,7 @@ static SYMBOL symbols[] = { ...@@ -93,6 +93,7 @@ static SYMBOL symbols[] = {
{ "CLIENT", SYM(CLIENT_SYM),0,0}, { "CLIENT", SYM(CLIENT_SYM),0,0},
{ "CLOSE", SYM(CLOSE_SYM),0,0}, { "CLOSE", SYM(CLOSE_SYM),0,0},
{ "COLLATE", SYM(COLLATE_SYM),0,0}, { "COLLATE", SYM(COLLATE_SYM),0,0},
{ "COLLATION", SYM(COLLATION_SYM),0,0},
{ "COLUMN", SYM(COLUMN_SYM),0,0}, { "COLUMN", SYM(COLUMN_SYM),0,0},
{ "COLUMNS", SYM(COLUMNS),0,0}, { "COLUMNS", SYM(COLUMNS),0,0},
{ "COMMENT", SYM(COMMENT_SYM),0,0}, { "COMMENT", SYM(COMMENT_SYM),0,0},
...@@ -267,6 +268,7 @@ static SYMBOL symbols[] = { ...@@ -267,6 +268,7 @@ static SYMBOL symbols[] = {
{ "MULTIPOLYGON", SYM(MULTIPOLYGON),0,0}, { "MULTIPOLYGON", SYM(MULTIPOLYGON),0,0},
{ "MRG_MYISAM", SYM(MERGE_SYM),0,0}, { "MRG_MYISAM", SYM(MERGE_SYM),0,0},
{ "MYISAM", SYM(MYISAM_SYM),0,0}, { "MYISAM", SYM(MYISAM_SYM),0,0},
{ "NAMES", SYM(NAMES_SYM),0,0},
{ "NATURAL", SYM(NATURAL),0,0}, { "NATURAL", SYM(NATURAL),0,0},
{ "NATIONAL", SYM(NATIONAL_SYM),0,0}, { "NATIONAL", SYM(NATIONAL_SYM),0,0},
{ "NEXT", SYM(NEXT_SYM),0,0}, { "NEXT", SYM(NEXT_SYM),0,0},
......
...@@ -194,6 +194,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize); ...@@ -194,6 +194,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token CHECK_SYM %token CHECK_SYM
%token COMMITTED_SYM %token COMMITTED_SYM
%token COLLATE_SYM %token COLLATE_SYM
%token COLLATION_SYM
%token COLUMNS %token COLUMNS
%token COLUMN_SYM %token COLUMN_SYM
%token CONCURRENT %token CONCURRENT
...@@ -284,6 +285,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize); ...@@ -284,6 +285,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%token MERGE_SYM %token MERGE_SYM
%token MIN_ROWS %token MIN_ROWS
%token MYISAM_SYM %token MYISAM_SYM
%token NAMES_SYM
%token NATIONAL_SYM %token NATIONAL_SYM
%token NATURAL %token NATURAL
%token NEW_SYM %token NEW_SYM
...@@ -3963,6 +3965,7 @@ keyword: ...@@ -3963,6 +3965,7 @@ keyword:
| CIPHER_SYM {} | CIPHER_SYM {}
| CLIENT_SYM {} | CLIENT_SYM {}
| CLOSE_SYM {} | CLOSE_SYM {}
| COLLATION_SYM {}
| COMMENT_SYM {} | COMMENT_SYM {}
| COMMITTED_SYM {} | COMMITTED_SYM {}
| COMMIT_SYM {} | COMMIT_SYM {}
...@@ -4040,6 +4043,7 @@ keyword: ...@@ -4040,6 +4043,7 @@ keyword:
| MULTIPOINT {} | MULTIPOINT {}
| MULTIPOLYGON {} | MULTIPOLYGON {}
| MYISAM_SYM {} | MYISAM_SYM {}
| NAMES_SYM {}
| NATIONAL_SYM {} | NATIONAL_SYM {}
| NCHAR_SYM {} | NCHAR_SYM {}
| NEXT_SYM {} | NEXT_SYM {}
...@@ -4186,6 +4190,13 @@ option_value: ...@@ -4186,6 +4190,13 @@ option_value:
find_sys_var("convert_character_set"), find_sys_var("convert_character_set"),
$4)); $4));
} }
| NAMES_SYM opt_equal set_expr_or_default
{
LEX *lex=Lex;
lex->var_list.push_back(new set_var(lex->option_type,
find_sys_var("client_character_set"),
$3));
}
| PASSWORD equal text_or_password | PASSWORD equal text_or_password
{ {
THD *thd=YYTHD; THD *thd=YYTHD;
......
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