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

Feature request - A function for current procedure/function name getter

Details

    Description

      • Current procedure/function name getter
        > by calling (for example) 'PRO_NAME()'' in a procedure or function like the function 'DATABASE()'
        > to identify each caller function name/identifier

      Multiple call hierarchy of prcedure make some custom/user own logs
      but need to SPECIFYING the log caller manually but when change the procedure names,
      people missing the logic changes which log identifier that caller. I do not think this small tasks really necessory to focus on which makes mistakes and hard to tract the logic hierarchy

      Attachments

        Issue Links

          Activity

            If this is done, I'd recommend you also add a function to get the current package.

            f_razzoli Federico Razzoli added a comment - If this is done, I'd recommend you also add a function to get the current package.
            npdmailing@gmail.com Mitchell Lee added a comment -

            @Federico Razzoli Do not understand, what do you meaning about. What can I do for you?

            npdmailing@gmail.com Mitchell Lee added a comment - @Federico Razzoli Do not understand, what do you meaning about. What can I do for you?

            This is just a suggestion. But a procedure can run inside a https://mariadb.com/kb/en/create-package/. Procedures in different packages can share the same name. So the feature you're requesting would be more complete if a PACKAGE_NAME() function is also implemented.

            f_razzoli Federico Razzoli added a comment - This is just a suggestion. But a procedure can run inside a https://mariadb.com/kb/en/create-package/ . Procedures in different packages can share the same name. So the feature you're requesting would be more complete if a PACKAGE_NAME() function is also implemented.

            People

              Unassigned Unassigned
              npdmailing@gmail.com Mitchell Lee
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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