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

N1QL Query has incorrect results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Critical
    • 3.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • Jianmin 43
    • 3

    Description

      Rounding should be based on "Round even" whereby the tiebreaker moves to the nearest even number

      Query

      SELECT ROUND(12+0.5) as rnd FROM scratch

      Expected Results

      [
        {
          "rnd": 12
        }
      ]
      

      Actual Results

      [
        {
          "rnd": 13.0
        }
      ]
      

      Attachments

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

        Activity

          People

            jianmin.zhao Jianmin Zhao
            jimb Jim Borden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty