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

syntax error EXECUTE IMMEDIATE 'use ?' USING @current_database

    XMLWordPrintable

Details

    Description

      Probably an abuse of execute immediate:

      SELECT database() INTO @current_database;
       
      /*M!100203 EXECUTE IMMEDIATE 'use ?' USING @current_database */;
      

      result

      ERROR 1064 (42000) at line 147: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?' at line 1
      

      If it will never work, just note the extent and we'll get it documents
      https://mariadb.com/kb/en/execute-immediate/

      Attachments

        Activity

          People

            serg Sergei Golubchik
            danblack Daniel Black
            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.