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
01d7727b
Commit
01d7727b
authored
Mar 01, 2019
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18779 Port sp_suid implementation from sql_yacc_ora.yy to sql_yacc.yy
parent
5a087444
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
sql/sql_lex.h
sql/sql_lex.h
+8
-7
sql/sql_yacc.yy
sql/sql_yacc.yy
+6
-10
No files found.
sql/sql_lex.h
View file @
01d7727b
...
...
@@ -223,6 +223,14 @@ enum plsql_cursor_attr_t
};
enum
enum_sp_suid_behaviour
{
SP_IS_DEFAULT_SUID
=
0
,
SP_IS_NOT_SUID
,
SP_IS_SUID
};
/* These may not be declared yet */
class
Table_ident
;
class
sql_exchange
;
...
...
@@ -344,13 +352,6 @@ extern MYSQL_PLUGIN_IMPORT const LEX_CSTRING empty_clex_str;
extern
const
LEX_CSTRING
star_clex_str
;
extern
const
LEX_CSTRING
param_clex_str
;
enum
enum_sp_suid_behaviour
{
SP_IS_DEFAULT_SUID
=
0
,
SP_IS_NOT_SUID
,
SP_IS_SUID
};
enum
enum_sp_data_access
{
SP_DEFAULT_ACCESS
=
0
,
...
...
sql/sql_yacc.yy
View file @
01d7727b
...
...
@@ -757,6 +757,7 @@ Virtual_column_info *add_virtual_expression(THD *thd, Item *expr)
st_trg_execution_order trg_execution_order;
/* enums */
enum enum_sp_suid_behaviour sp_suid;
enum enum_view_suid view_suid;
enum Condition_information_item::Name cond_info_item_name;
enum enum_diag_condition_item_name diag_condition_item_name;
...
...
@@ -2054,7 +2055,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b, size_t *yystacksize);
opt_extended_describe shutdown
opt_format_json
prepare prepare_src execute deallocate
statement
sp_suid
statement
sp_c_chistics sp_a_chistics sp_chistic sp_c_chistic xa
opt_field_or_var_spec fields_or_vars opt_load_data_set_spec
view_list_opt view_list view_select
...
...
@@ -2101,6 +2102,7 @@ END_OF_INPUT
%type <view_suid> view_suid opt_view_suid
%type <plsql_cursor_attr> plsql_cursor_attr
%type <sp_suid> sp_suid
%type <num> sp_decl_idents sp_decl_idents_init_vars
%type <num> sp_handler_type sp_hcond_list
...
...
@@ -3365,7 +3367,7 @@ sp_chistic:
| MODIFIES_SYM SQL_SYM DATA_SYM
{ Lex->sp_chistics.daccess= SP_MODIFIES_SQL_DATA; }
| sp_suid
{}
{
Lex->sp_chistics.suid= $1;
}
;
/* Create characteristics */
...
...
@@ -3375,14 +3377,8 @@ sp_c_chistic:
;
sp_suid:
SQL_SYM SECURITY_SYM DEFINER_SYM
{
Lex->sp_chistics.suid= SP_IS_SUID;
}
| SQL_SYM SECURITY_SYM INVOKER_SYM
{
Lex->sp_chistics.suid= SP_IS_NOT_SUID;
}
SQL_SYM SECURITY_SYM DEFINER_SYM { $$= SP_IS_SUID; }
| SQL_SYM SECURITY_SYM INVOKER_SYM { $$= SP_IS_NOT_SUID; }
;
call:
...
...
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