PostgreSqlStorage: Fix apparently-incorrect index in requestAllMsgs
authorMichael Marley <michael@michaelmarley.com>
Tue, 27 Mar 2018 23:41:28 +0000 (19:41 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Apr 2018 16:37:27 +0000 (18:37 +0200)
commitf5cb45a2c5447f0ab5e7b1bccd53c69d192aa3c6
tree8ab5e59bac680c5941663ea9e2a36b57a0a266e1
parentadd9e1afd5a4ec7eb104a7cd111429037740a0a0
PostgreSqlStorage: Fix apparently-incorrect index in requestAllMsgs

This function was using 1 for its date index, which is the same
index as was used for bufferid.  The correct index to use is 2.

Closes GH-346.

(cherry picked from commit 3bf86a5278e26bec5e708a566e6926125f1941f0)
src/core/postgresqlstorage.cpp