core: Fix/unify SQL for forward message fetch
authorShane Synan <digitalcircuit36939@gmail.com>
Fri, 10 Jul 2020 21:23:18 +0000 (17:23 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 4 Oct 2020 15:01:02 +0000 (17:01 +0200)
commit76883c546324b1fb80f465421d4e3c7732505852
tree0746975709757b28d6e8e8f821747b778be2d381
parent145a52eb79fed146731f85c23b60f0609e40e785
core: Fix/unify SQL for forward message fetch

NOTE: This commit should be squashed into the previous commit from
justJanne.  It's committed separately just to make it easier to see
what I changed.

Fixup the SQLite and PostgreSQL queries to treat "<= 0" as any
type/flag instead of just "= 0".  This matches the function
definitions and fixes specifying "-1" instead of "0".  Without this
change, specifying "-1" will result in missing messages!
src/core/SQL/PostgreSQL/select_messagesForward.sql
src/core/SQL/SQLite/select_messagesForward.sql