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

Inconsistent handling of zero-padded numbers in json

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
    • 10.4, 10.5, 10.6, 11.1, 11.2
    • JSON
    • None

    Description

      Actual Result

      11.1.0-dbg>SELECT * FROM JSON_TABLE(JSON_KEY_VALUE('{"key1":{"a":01}}', '$.key1'), '$[*]' COLUMNS (k VARCHAR(11) PATH '$.key', v VARCHAR(5) PATH '$.value', id FOR ORDINALITY)) AS jt;
      Empty set (0.000 sec)
       
      11.1.0-dbg>
      

      Expected Result

      11.1.0-dbg>SELECT * FROM JSON_TABLE(JSON_KEY_VALUE('{"key1":{"a":01}}', '$.key1'), '$[*]' COLUMNS (k VARCHAR(11) PATH '$.key', v VARCHAR(5) PATH '$.value', id FOR ORDINALITY)) AS jt;
      +------+------+------+
      | k    | v    | id   |
      +------+------+------+
      | a    | 1    |    1 |
      +------+------+------+
      1 row in set (0.000 sec)
       
      11.1.0-dbg>
      

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              ramesh Ramesh Sivaraman
              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.