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
bbbe7e78
Commit
bbbe7e78
authored
Jan 31, 2021
by
Oleksandr Byelkin
Committed by
Sergei Golubchik
Feb 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync changes in oracle parser
parent
60ea09ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
39 deletions
+43
-39
sql/sql_yacc_ora.yy
sql/sql_yacc_ora.yy
+43
-39
No files found.
sql/sql_yacc_ora.yy
View file @
bbbe7e78
...
...
@@ -288,7 +288,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
/*
We should not introduce any further shift/reduce conflicts.
*/
%expect
6
3
%expect
8
3
/*
Comments for TOKENS.
...
...
@@ -1258,9 +1258,9 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
%type <type_handler> int_type real_type
%type <Lex_field_type>
type_with_opt_collate field_type
%type <Lex_field_type>
field_type field_type_all
qualified_field_type
sp_param_type
_with_opt_collate
sp_param_type
sp_param_field_type
sp_param_field_type_string
field_type_numeric
...
...
@@ -3044,7 +3044,7 @@ sp_param_name:
;
sp_param_name_and_type:
sp_param_name sp_param_type
_with_opt_collate
sp_param_name sp_param_type
{
if (unlikely(Lex->sp_param_fill_definition($$= $1)))
MYSQL_YYABORT;
...
...
@@ -3088,7 +3088,7 @@ sp_pdparams:
;
sp_pdparam:
sp_param_name sp_opt_inout sp_param_type
_with_opt_collate
sp_param_name sp_opt_inout sp_param_type
{
$1->mode= $2;
if (unlikely(Lex->sp_param_fill_definition($1)))
...
...
@@ -3273,7 +3273,7 @@ row_field_name:
;
row_field_definition:
row_field_name
type_with_opt_collat
e
row_field_name
field_typ
e
;
row_field_definition_list:
...
...
@@ -3307,7 +3307,7 @@ sp_decl_idents_init_vars:
sp_decl_vars:
sp_decl_idents_init_vars
type_with_opt_collat
e
field_typ
e
sp_opt_default
{
if (unlikely(Lex->sp_variable_declarations_finalize(thd, $1,
...
...
@@ -6764,19 +6764,26 @@ column_default_expr:
}
;
field_type: field_type_all
{
Lex->map_data_type(Lex_ident_sys(), &($$= $1));
Lex->last_field->set_attributes($$, Lex->charset);
}
;
qualified_field_type:
field_type
field_type
_all
{
Lex->map_data_type(Lex_ident_sys(), &($$= $1));
}
| sp_decl_ident '.' field_type
| sp_decl_ident '.' field_type
_all
{
if (Lex->map_data_type($1, &($$= $3)))
MYSQL_YYABORT;
}
;
field_type:
field_type
_all
:
field_type_numeric
| field_type_temporal
| field_type_string
...
...
@@ -7319,30 +7326,10 @@ with_or_without_system:
;
type_with_opt_collate:
field_type opt_collate
{
Lex->map_data_type(Lex_ident_sys(), &($$= $1));
if ($2)
{
if (unlikely(!(Lex->charset= merge_charset_and_collation(Lex->charset, $2))))
MYSQL_YYABORT;
}
Lex->last_field->set_attributes($$, Lex->charset);
}
;
sp_param_type_with_opt_collate:
sp_param_field_type opt_collate
sp_param_type:
sp_param_field_type
{
Lex->map_data_type(Lex_ident_sys(), &($$= $1));
if ($2)
{
if (unlikely(!(Lex->charset= merge_charset_and_collation(Lex->charset, $2))))
MYSQL_YYABORT;
}
Lex->last_field->set_attributes($$, Lex->charset);
}
;
...
...
@@ -7420,6 +7407,12 @@ charset_or_alias:
}
;
collate: COLLATE_SYM collation_name_or_default
{
Lex->charset= $2;
}
;
opt_binary:
/* empty */ { bincmp_collation(NULL, false); }
| binary {}
...
...
@@ -7430,6 +7423,13 @@ binary:
| charset_or_alias opt_bin_mod { bincmp_collation($1, $2); }
| BINARY { bincmp_collation(NULL, true); }
| BINARY charset_or_alias { bincmp_collation($2, true); }
| charset_or_alias collate
{
if (!my_charset_same(Lex->charset, $1))
my_yyabort_error((ER_COLLATION_CHARSET_MISMATCH, MYF(0),
Lex->charset->name, $1->csname));
}
| collate { }
;
opt_bin_mod:
...
...
@@ -14730,7 +14730,7 @@ kill:
lex->sql_command= SQLCOM_KILL;
lex->kill_type= KILL_TYPE_ID;
}
kill_type kill_option
kill_expr
kill_type kill_option
{
Lex->kill_signal= (killed_state) ($3 | $4);
}
...
...
@@ -14743,16 +14743,21 @@ kill_type:
;
kill_option:
/* empty */ { $$= (int) KILL_CONNECTION; }
| CONNECTION_SYM { $$= (int) KILL_CONNECTION; }
| QUERY_SYM { $$= (int) KILL_QUERY; }
| QUERY_SYM ID_SYM
opt_connection kill_expr { $$= (int) KILL_CONNECTION; }
| QUERY_SYM kill_expr { $$= (int) KILL_QUERY; }
| QUERY_SYM ID_SYM expr
{
$$= (int) KILL_QUERY;
Lex->kill_type= KILL_TYPE_QUERY;
Lex->value_list.push_front($3, thd->mem_root);
}
;
opt_connection:
/* empty */ { }
| CONNECTION_SYM { }
;
kill_expr:
expr
{
...
...
@@ -14765,7 +14770,6 @@ kill_expr:
}
;
shutdown:
SHUTDOWN { Lex->sql_command= SQLCOM_SHUTDOWN; }
;
...
...
@@ -18025,7 +18029,7 @@ sf_return_type:
&empty_clex_str,
thd->variables.collation_database);
}
sp_param_type
_with_opt_collate
sp_param_type
{
if (unlikely(Lex->sphead->fill_field_definition(thd,
Lex->last_field)))
...
...
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