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

Add syntax for boolean IS operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • SQL
    • Normal

    Description

      The BooleanDataValue interface and the SQLBoolean class implement the boolean IS operator in their is() and isNot() methods. There is also an (unused) IsNode class for the AST. However, the operator is not exposed in the grammar, so there's no way to use it.

      The boolean IS operator is defined in the SQL:2003 standard, part 2, section 6.34 <boolean value expression>.

      <boolean test> ::= <boolean primary> [ IS [ NOT ] <truth value> ]

      There's also Table 13 — Truth table for the IS boolean operator.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: