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

add simple way to convert json true and false to database bool

    XMLWordPrintable

Details

    Description

      select convert(JSON_UNQUOTE(JSON_EXTRACT('{"key":true}', '$.key')), INT);

      workaround

      select NVL2(nullif(lower(JSON_UNQUOTE(JSON_EXTRACT('{"key":true}', '$.key'))), 'false'), TRUE, FALSE);

      Attachments

        Activity

          People

            Unassigned Unassigned
            joe_nolann joe nolann
            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.