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

In PREPARED STATEMENTS impossible to use multiple statements

    XMLWordPrintable

Details

    Description

      Example:

      DELIMITER $$
       
      CREATE PROCEDURE `test_dsql`()
      BEGIN
      	PREPARE sql_fn FROM 'select 1; select 2';
      	EXECUTE sql_fn;
      	DEALLOCATE PREPARE sql_fn;
      END$$
       
      DELIMITER ;

      Query: call test_dsql()
       
      Error Code: 1064
      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 'select 2' at line 1

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikhail Mikhail Gavrilov
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.