Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1651

N1QL Query has incorrect results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • 3.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • Jianmin 43
    • 3

    Description

      Divide by zero should output null

      Query

      SELECT 1/0 AS result FROM scratch

      Expected Results

      [
        {
          "result": null
        }
      ]
      

      Actual Results

      [
        {}
      ]
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              The Lite The Lite
              jimb Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty