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

Correct the implicit casting of other types to BOOLEAN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.7.1.1
    • SQL
    • None
    • Deviation from standard

    Description

      Via a UNION query, it is possible to implicitly cast non-BOOLEAN types to BOOLEAN today. These implicit casts do not obey the SQL Standard rules defined in part 2, section 6.12 (<cast specification>). Derby should support the Standard rules.

      The following query shows how you can implicitly cast a non-BOOLEAN data type to BOOLEAN today:

      select isindex from sys.sysconglomerates where conglomeratename = 'foo'
      union
      values ( 1 )

      Attachments

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: