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

Documentation: Incorrect syntax for DECLARE CURSOR with parameters

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • N/A
    • N/A
    • Documentation
    • None

    Description

      KB says:

      DECLARE cursor_name [(cursor_formal_parameter[,...])] CURSOR FOR select_statement;
      

      In fact, it is

      DECLARE cur CURSOR (f INT) FOR SELECT 1;
      

      (different order – first CURSOR, then parameters).

      Possibly there are other differences.

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            elenst Elena Stepanova
            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.