Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-18779

Port sp_suid implementation from sql_yacc_ora.yy to sql_yacc.yy

    Details

      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

            Activity

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: