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

    XMLWordPrintable

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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.