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

Need a way to distinguish boolean types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0
    • 2.5.0
    • LiteCore
    • Security Level: Public
    • Jim 39
    • 5

    Description

      https://github.com/couchbase/couchbase-lite-core/issues/200

      SQLite does not have them but we need them to properly implement things like "isboolean" and proper bool querying (instead of comparing to the numeric value 1)

      We can make booleans detectable in results by having the fl_result function detect the boolean subtype and wrap that value in Fleece as a boolean. (The same tactic used for returning blobs.)

      However, that won't make booleans work completely, because the results of SQLite intrinsic operators like > and LIKE, are still 0 and 1.

      Attachments

        Issue Links

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

          Activity

            People

              jimb Jim Borden
              jimb Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty