Typo in the FTS3 documentation
(1) By Simon Eskildsen (Sirupsen) on 2021-12-27 16:37:21 [link] [source]
In the excellent documentation for the FTS3/4 module, there seems to be an error in the varint
format section.
It suggests that 200815
encodes to 0x9C 0xA0 0x0C
, however, sqlite3Fts3PutVarint
encodes it to 0xEF 0xA0 0x0C
which is also consistent with what I got on paper.
Code to show this: http://codepad.org/OgYIWaGK
(2) By Dan Kennedy (dan) on 2021-12-29 21:03:03 in reply to 1 [source]
Thanks for this. You're correct, of course:
% expr (0xEF & 0x7F) + ((0xA0 & 0x7F)<<7) + (0x0C<<14)
200815
Dan.