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

JSON_QUOTE emits utf8mb4, JSON_CONTAINS compares raw bytes

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      CREATE TABLE tl (a VARCHAR(10) CHARACTER SET latin1);
      INSERT INTO tl VALUES ('é');
      SELECT (CONCAT('["',a,'"]')), a MEMBER OF (CONCAT('["',a,'"]')) FROM tl;
      

      bb-38591-member-of-grammar 10f16d15e9e40254be27

      SELECT (CONCAT('["',a,'"]')), a MEMBER OF (CONCAT('["',a,'"]')) FROM tl;
      (CONCAT('["',a,'"]'))	a MEMBER OF (CONCAT('["',a,'"]'))
      ["é"]	0
      

      JarirBob FYI

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.