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

JOIN on two same columns make server search indefintely

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.0.29-galera
    • N/A
    • Optimizer
    • None
    • Ubuntu Server 16.04

    Description

      It was caused directly from a programming mistake, but I think that it can also be considered as a bug.

      I do a mistake like this in a JOIN :

      SELECT categories.*
      FROM categories
      JOIN products ON products.category_id = products.category_id
      

      I don't know if it's a bug, but I think that the server should throw an error when a query try to join comparing two table/columns pairs that are the same causing the server to indefinitely run.

      Thank you very much and have a great day !

      Attachments

        Activity

          People

            serg Sergei Golubchik
            dctremblay David Côté-Tremblay
            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.