Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.5.0
-
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.