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

Inconsistent query results for LONGTEXT and TINYTEXT

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 11.6.1, 11.8.1, 11.8
    • 11.8
    • Server
    • None

    Description

      I run the following test cases, in which the query results are expected to be the same.

      CREATE TABLE t1 (c1 LONGTEXT);
      INSERT INTO t1 (c1) VALUES ('B');
      INSERT INTO t1 (c1) VALUES ('A');
      SELECT c1 FROM t1 WHERE AES_ENCRYPT(c1, 1) > SOME (SELECT c1 FROM t1) IS TRUE; -- {}
      

      CREATE TABLE t1 (c1 TINYTEXT);
      INSERT INTO t1 (c1) VALUES ('B');
      INSERT INTO t1 (c1) VALUES ('A');
      SELECT c1 FROM t1 WHERE AES_ENCRYPT(c1, 1) > SOME (SELECT c1 FROM t1) IS TRUE; -- {A}
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              John Jove John Jove
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.