Closed ismailbennani closed 8 months ago
Hi @ismailbennani, I'll have a lot at it.
Hi @ismailbennani,
you were right, the Count (and all other operators) are applied a second time for the second call to Count()
. The LiteDB query then throws the ArgumentException
.
I fixed this and added reproduction tests for this issue. The new release v2.2.1 will contain the fix and will be out any minute.
Thanks for reporting this. 🙂
Cheers, Matt
Fixed in v2.2.1
Hello,
I get the following exception when I use the same ordered query multiple times. It seems like the query builder tries to apply the ordering twice, once per call to
Count
instead of just once. Is it a bug or am I missing something ?Thank you for your time!
Reproduction: