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

Select query with a constant against a Spider table produces incorrect results.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 11.4.5
    • N/A
    • None
    • RedHat 9 VM

    Description

      When running a select query against a spider table and using a constant the constant value is inserted into the result set instead of the selected value.

      For example:

      In a table with this dataset

      ID | Value
      1 | One
      2 | Two
      3 | Three
      4 | Four

      select "sample", value from spider.table; produces

      sample,One
      sample,sample
      sample,sample
      sample,sample

      If you run the query against an InnoDB table you get these results.

      select "sample", value from InnoDB.table;

      sample,One
      sample,Two
      sample,Three
      sample,Four

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              jmyrna Uncle Walter23
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.