Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
The sp_suid rule is implemented differently in sql_yacc.yy and sql_yacc_ora.yy:
sql_yacc.yy writes directly to Lex:
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_yacc_ora.yy uses Bison stack:
sp_suid:
|
SQL_SYM SECURITY_SYM DEFINER_SYM { $$= SP_IS_SUID; }
|
| SQL_SYM SECURITY_SYM INVOKER_SYM { $$= SP_IS_NOT_SUID; }
|
;
|
In order to unify the two *.yy files easier, we'll port the sql_yacc_ora.yy implementation to sql_yacc.yy as a separate commit.
Attachments
Issue Links
- blocks
-
MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy
- Closed