sql: Fix population of lastmsgid for empty buffers
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 9 Nov 2017 22:23:22 +0000 (23:23 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 19 Dec 2017 14:13:59 +0000 (15:13 +0100)
Buffers may be empty, in which case the query to determine the last
message ID in them returns NULL, violating the constraint for the
newly introduced column. Use 0 instead.

Closes GH-315.


No differences found