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

Optionally don't make a query fail with USE INDEX (non_existing_index)

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      A query like this:

      SELECT ... FROM t USE INDEX (index_name) ...

      will fail with an error if specified index does not exist. This seems to me the best behaviour in test environment, but dangerous in production. Think about this case: my db is used in production, at some point I remove an index which seems useless, and suddenly some queries fail.

      So what I'm asking (unless you have better ideas to solve this problem) is having a new system variable which determines if queries like this should fail with an error, or just produce a warning.

      Attachments

        Activity

          People

            Unassigned Unassigned
            f_razzoli Federico Razzoli
            Votes:
            1 Vote for this issue
            Watchers:
            4 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.