Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5451

Allow for casting numeric types to BOOLEAN

    XMLWordPrintableJSON

Details

    • Normal

    Description

      According to the casting matrix:

      http://db.apache.org/derby/docs/10.8/ref/rrefsqlj33562.html

      it is currently not possible to write CAST(1 as BOOLEAN). At the same time, casting CHAR and VARCHAR as BOOLEAN is possible, e.g. CAST('1' as BOOLEAN), or CAST(CAST(1 as CHAR(1)) as BOOLEAN). This was recently implemented:

      https://issues.apache.org/jira/browse/DERBY-4658

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukas.eder Lukas Eder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: