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

The select query result does not meet expectations

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5.16, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
    • 10.4, 10.5, 10.6
    • None
    • None

    Description

      expect consistent results

      MariaDB [mydb]> select b.a as x, b.a as y from (select database() as a from t1) as b group by 2;
      +------+------+
      | y    | y    |
      +------+------+
      | mydb | mydb |
      +------+------+
      1 row in set (0.001 sec)
       
      MariaDB [mydb]> select b.a as x, b.a as y from (select database() as a from t1) as b;
      +------+------+
      | x    | y    |
      +------+------+
      | mydb | mydb |
      +------+------+
      1 row in set (0.001 sec)
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            dongjian dongjian
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.