[MDEV-18779] Port sp_suid implementation from sql_yacc_ora.yy to sql_yacc.yy Created: 2019-03-01  Updated: 2019-03-29  Resolved: 2019-03-29

Status: Closed
Project: MariaDB Server
Component/s: Parser
Fix Version/s: 10.4.4

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: Compatibility

Issue Links:
Blocks
blocks MDEV-12518 Unify sql_yacc.yy and sql_yacc_ora.yy Closed

 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.


Generated at Thu Feb 08 08:46:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.