Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d698b5bf
Commit
d698b5bf
authored
Feb 26, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_yacc.yy, lex.h:
SET NAMES is now working
parent
ace0eac6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
sql/lex.h
sql/lex.h
+2
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+11
-0
No files found.
sql/lex.h
View file @
d698b5bf
...
@@ -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
},
...
...
sql/sql_yacc.yy
View file @
d698b5bf
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment