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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
952cb9b4
Commit
952cb9b4
authored
Jan 08, 2003
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed to look in common style
parent
ea4621e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
sql/sql_yacc.yy
sql/sql_yacc.yy
+5
-13
No files found.
sql/sql_yacc.yy
View file @
952cb9b4
...
@@ -633,7 +633,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -633,7 +633,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
%type <charset>
%type <charset>
charset_name
charset_name
charset_name_or_default
charset_name_or_default
opt_d
b_default_character_
set
opt_d
efault_char
set
%type <variable> internal_variable_name
%type <variable> internal_variable_name
...
@@ -857,7 +857,7 @@ create:
...
@@ -857,7 +857,7 @@ create:
lex->key_list.push_back(new Key($2,$4.str, $5, lex->col_list));
lex->key_list.push_back(new Key($2,$4.str, $5, lex->col_list));
lex->col_list.empty();
lex->col_list.empty();
}
}
| CREATE DATABASE opt_if_not_exists ident opt_d
b_default_character_
set
| CREATE DATABASE opt_if_not_exists ident opt_d
efault_char
set
{
{
LEX *lex=Lex;
LEX *lex=Lex;
lex->sql_command=SQLCOM_CREATE_DB;
lex->sql_command=SQLCOM_CREATE_DB;
...
@@ -1236,15 +1236,7 @@ attribute:
...
@@ -1236,15 +1236,7 @@ attribute:
charset_name:
charset_name:
BINARY
ident
{
if (!($$=get_charset_by_name("binary",MYF(0))))
{
net_printf(YYTHD,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))))
{
{
...
@@ -1261,7 +1253,7 @@ opt_default:
...
@@ -1261,7 +1253,7 @@ opt_default:
/* empty */ {}
/* empty */ {}
| DEFAULT {};
| DEFAULT {};
opt_d
b_default_character_
set:
opt_d
efault_char
set:
/* empty */ { $$=default_charset_info; }
/* empty */ { $$=default_charset_info; }
| opt_default CHAR_SYM SET charset_name_or_default { $$=$4; }
| opt_default CHAR_SYM SET charset_name_or_default { $$=$4; }
| opt_default CHARSET charset_name_or_default { $$=$3; };
| opt_default CHARSET charset_name_or_default { $$=$3; };
...
@@ -1408,7 +1400,7 @@ alter:
...
@@ -1408,7 +1400,7 @@ alter:
}
}
alter_list
alter_list
{}
{}
| ALTER DATABASE ident opt_d
b_default_character_
set
| ALTER DATABASE ident opt_d
efault_char
set
{
{
LEX *lex=Lex;
LEX *lex=Lex;
lex->sql_command=SQLCOM_ALTER_DB;
lex->sql_command=SQLCOM_ALTER_DB;
...
...
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