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

Nested query does not give same result as subquery and an outer query

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2.6, 10.2.7, 10.2.8, 10.3.1
    • Fix Version/s: N/A
    • Component/s: Optimizer
    • Labels:
    • Environment:
      Windows 64

      Description

      A nested query does not return correct results in at least one case.

      Scenario:

      • A nested query query (Select col... where col in (subquery)) returns empty.
      • Subquery correctly returns the rows (x,y,z).
      • OuterQuery takes (z,y,z) in an IN statement and correctly selects the relevant results (Select col... where col in (x,y,z))

      This is not happening in 10.1 but only on 102 onwards.

      I could not reproduce in a simpler scenario. Perhaps this is due to using fulltext search in the subquery, or any other reason.

      Details:
      https://stackoverflow.com/questions/45964454/subqueries-do-not-work-in-windows-but-works-on-linux

      Tables are innodb. Attached the cfg settings I added to my.ini.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              varun Varun Gupta
              Reporter:
              costateixeira Jose Costa Teixeira
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: