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

multiple use of "SET STATEMENT sql_select_limit=xx FOR" set it at session level.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • 10.11.1, 10.6.12
    • 10.4.32
    • OTHER
    • None

    Description

      When using multi-statement capability, using multiple "SET STATEMENT sql_select_limit=xx FOR" in one query will set first "sql_select_limit" at session level, not only for the current query.

      example executing command :
      "SET STATEMENT sql_select_limit=2 FOR SELECT * FROM seq_1_to_5;SELECT * FROM seq_1_to_5;SET STATEMENT sql_select_limit=3 FOR SELECT * FROM seq_1_to_5;SELECT * FROM seq_1_to_5"

      will return correctly return 2, 2, 3 and 3 rows, problem is that session sql_select_limit is then incorrectly set to value 2.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              diego dupin Diego Dupin
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.