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

LP:1002564 - Wrong result for a lookup query from a heap table

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The following test case gives us a wrong result in MariaDB 5.2/5.5

      CREATE TABLE t1 (
      c1 VARCHAR(10) NOT NULL,
      KEY i1 (c1(3))
      ) ENGINE=MEMORY DEFAULT CHARSET=latin1;
      INSERT INTO t1 VALUES ('foo1'), ('bar2'), ('baz3');

      SELECT * FROM t1 WHERE c1='bar2';

      MariaDB [test]> SELECT * FROM t1 WHERE c1='bar2';
      Empty set (0.00 sec)

      (see also bug #47704 from bugs.mysql.com)

      Attachments

        Activity

          People

            monty Michael Widenius
            igor Igor Babaev
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.