Documentation or default argument for BITTEST is incorrect

I don’t have an account for the couchbase Jira, and I wasn’t sure about how to get one, so I thought I would report a bug here.

In the documentation for BITTEST at it states that the all_set is “[OPTIONAL; default is TRUE]”. This is incorrect, the default is in practice FALSE, as shown by the following trivial test.


Which returns TRUE, when if the default were TRUE would return FALSE. Supplying the argument explicitly confirms this behaviour.

Hi @towler,

Thank you, will open a ticket to fix it.
Ticket: DOC-5342