Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1211

maxrows should be configurable to return error when limit has been exceeded

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 2.1.3
    • maxrows
    • None

    Description

      It should be possible to configure maxrows to return an error when the maximum has been reached instead of a resultset of 0 rows.

      There should, for instance, be a configuration setting like:

      return=empty|error|ok

      with empty being the default.

      Attachments

        Activity

          Currently working on the new feature:

          MySQL [(none)]> select * from test.t4;
          ERROR 1415 (0A000): Row limit/size exceeded for query: select * from test.t4
          MySQL [(none)]> select repeat('a', 1000000);
          ERROR 1415 (0A000): Row limit/size exceeded for query: select repeat('a', 1000000)
          MySQL [(none)]>

          Note:

          error message "ERROR 1415 (0A000): Row limit/size exceeded for query: "
          +
          input query

          Massimiliano Pinto Massimiliano Pinto (Inactive) added a comment - Currently working on the new feature: MySQL [(none)] > select * from test.t4; ERROR 1415 (0A000): Row limit/size exceeded for query: select * from test.t4 MySQL [(none)] > select repeat('a', 1000000); ERROR 1415 (0A000): Row limit/size exceeded for query: select repeat('a', 1000000) MySQL [(none)] > Note: error message "ERROR 1415 (0A000): Row limit/size exceeded for query: " + input query

          New parameter for maxsrows filter:

          max_resultset_return=empty|error|ok
          Default, 'empty' is to return an empty set, as the current implementation.

          'err' will return an ERR reply with the input SQL statement
          'ok' will return an OK packet

          Massimiliano Pinto Massimiliano Pinto (Inactive) added a comment - New parameter for maxsrows filter: max_resultset_return=empty|error|ok Default, 'empty' is to return an empty set, as the current implementation. 'err' will return an ERR reply with the input SQL statement 'ok' will return an OK packet

          People

            Massimiliano Pinto Massimiliano Pinto (Inactive)
            johan.wikman Johan Wikman
            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.