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

Query returns syntax error (SELECT 1 AS i FROM dual ORDER BY i;)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 5.5, 10.0
    • N/A
    • Optimizer
    • None

    Description

      Query returns syntax error in MariaDB 5.5-10.0, but works >=10.1

      SELECT 1 AS i FROM dual ORDER BY i;
      SELECT 1 AS i FROM dual GROUP BY i;

      MariaDB [test]> SELECT 1 AS i FROM dual ORDER  BY i;
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER  BY i' at line 1
       
      MariaDB [test]> SELECT 1 AS i FROM dual GROUP  BY i;
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP  BY i' at line 1
      

      Attachments

        Activity

          People

            alice Alice Sherepa
            alice Alice Sherepa
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.