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

order by in subselect not performed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.0.15
    • N/A
    • Optimizer
    • None
    • ubuntu 14.04.1 LTS

    Description

      following statement represents a simplified query; I simulate a 3-row table with a union statement.
      order by in the inner subselect does not affect the order of the outer select
      in mysql it does.
      statement:
      SELECT * FROM (SELECT * FROM (SELECT 'a' UNION SELECT 'b' UNION SELECT 'c' )t order BY a desc)t
      result: a,b,c
      in Mysql: c,b,a (correct)

      Attachments

        Activity

          People

            Unassigned Unassigned
            arbyter Robert Hofer
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.