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

The documentation for NULLIF could be improved

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Trivial
    • Resolution: Invalid
    • 10.3.1.4
    • None
    • Documentation
    • None

    Description

      The documentation for NULLIF could be improved as it doesn't explain what NULLIF does at
      http://db.apache.org/derby/manuals/reference/sqlj66.html#NULLIF+and+CASE+expressions
      I believe the behaviour is that if both arguments are equal it returns NULL otherwise it returns the first value

      e.g.
      NULLIF(L, R)
      is equivalent to:
      CASE WHEN L=R THEN NULL ELSE L END

      Attachments

        Activity

          People

            Unassigned Unassigned
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: