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

SUBSELECT does not always work as a row element

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5, 10.0, 10.1, 10.2
    • N/A
    • Parser
    • None

    Description

      This query works fine and returns 1:

      SELECT (1,1)=(SELECT 1,1);
      

      This query returns an error:

      SELECT (1,1)=(1,SELECT 1);
      

      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 'SELECT 1)' at line 1
      

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            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.