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

JSON_OBJECT creates invalid json for zerofill columns

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 10.11.5
    • N/A
    • N/A
    • None

    Description

      CREATE TABLE `test` (
      `ID` smallint(4) unsigned zerofill NOT NULL AUTO_INCREMENT
      )

      SELECT JSON_OBJECT('ID',ID) FROM test

      An example Output would be

      {ID: 0001}

      , which does not seem to be a valid JSON-String. Maybe it would be possible to treat zerofill as a String?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              NReib Nils Reibold
              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.