We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before #207
if save document like this into couchbase-lite database:
FLEncoder_BeginDict(enc, 1); FLEncoder_WriteKey(enc, FLSTR("float")); FLEncoder_WriteFloat(enc, 1.5f); FLEncoder_EndDict(enc));
and then run query like this SELECT float FROM _default,
SELECT float FROM _default
then such asserts were passed without any problem:
FLValue val = FLArrayIterator_GetValue(&e->columns); REQUIRED(kFLNumber == FLValue_GetType(val)); REQUIRED(!FLValue_IsDouble(val));
but after #207 , last test failed REQUIRED(!FLValue_IsDouble(val)). So I got double instead of float after #207.
REQUIRED(!FLValue_IsDouble(val))
Is this expected behaviour?
full_test_code.zip
The text was updated successfully, but these errors were encountered:
fix getting f32 from query
b5cebb7
see couchbase/fleece#221 for more details
68f7a70
It sounds like the first code block is part of saving a Couchbase Lite document, and the second is after a query that returns data from that document?
Sounds like, if this is a bug, it's something to do with LiteCore, not Fleece.
Sorry, something went wrong.
No branches or pull requests
Before #207
if save document like this into couchbase-lite database:
and then run query like this
SELECT float FROM _default
,then such asserts were passed without any problem:
but after #207 , last test failed
REQUIRED(!FLValue_IsDouble(val))
.So I got double instead of float after #207.
Is this expected behaviour?
full_test_code.zip
The text was updated successfully, but these errors were encountered: