Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10142 PL/SQL parser
  3. MDEV-12394

Add function is_native_function_with_warn()

    XMLWordPrintable

Details

    • 10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18

    Description

      There is a huge piece of code with huge comments in sql_yacc.yy:

      if (is_native_function(thd, & sp->m_name))
      {
        /*
         Huge comment
        */
        ...
      }
      

      responsible to display a warning when a user shadows a built-in function with a stored function.

      The same warning will be needed for package routines (MDEV-10591).

      We'll move this piece of code to sql_lex.cc into a new function is_native_function_with_warn().

      This change was originally a part of MDEV-11952, but it was decided to commit it as a standalone change.

      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.