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

IN query from information schema mixes up upper/lower case table names

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.6, 10.11, 11.4, 11.8, 12.0(EOL)
    • N/A
    • Information Schema
    • None
    • Not for Release Notes

    Description

      --source include/have_lowercase0.inc
       
      create table D (pk int primary key);
      create table d (id int primary key);
       
      select table_name, index_name, column_name from information_schema.statistics where table_schema = 'test';
      select table_name, index_name, column_name from information_schema.statistics where table_schema = 'test' and table_name in ('d','D');
       
      drop table d, D;
      

      main e02f4d7e311e214ea62ff2e59599849e229f4165

      select table_name, index_name, column_name from information_schema.statistics where table_schema = 'test';
      table_name	index_name	column_name
      d	PRIMARY	id
      D	PRIMARY	pk
      select table_name, index_name, column_name from information_schema.statistics where table_schema = 'test' and table_name in ('d','D');
      table_name	index_name	column_name
      d	PRIMARY	id
      

      The result changed after this commit in 10.6.11:

      commit 5027cb2b74a0b37cbdd3ad190cb8b2bf738c0cde
      Author: Oleg Smirnov
      Date:   Tue Oct 4 16:45:51 2022 +0700
       
          MDEV-29662 Replace same values in 'IN' list with an equality
      

      Attachments

        Issue Links

          Activity

            People

              oleg.smirnov Oleg Smirnov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.