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

OUT parameters in PREPARE

    XMLWordPrintable

Details

    Description

      Current — 10.1.1 — implementation of OUT parameters in PREPARE is as follows:

      PREPARE .... "SELECT ... INTO ?, ?, ...";
      EXECUTE .... USING @var1, @var2, ...

      It is non-standard. And it's not strictly necessary, as there are easy workarounds.

      Standard syntax is

      PREPARE .... "SELECT ... ";
      EXECUTE ... INTO @var1, @var2, ...

      The workaround is:

      PREPARE .... "SELECT ... INTO @var1, @var2, ...";
      EXECUTE ....

      We should consider changing the syntax to be standard or removing this feature completely.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.