From: Manuel Nickschas Date: Thu, 9 Nov 2017 22:23:22 +0000 (+0100) Subject: sql: Fix population of lastmsgid for empty buffers X-Git-Tag: travis-deploy-test~251 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;ds=sidebyside;h=f509a0d1065d4e42c9eb84e0ffab9e72517df04c;hp=f509a0d1065d4e42c9eb84e0ffab9e72517df04c;p=quassel.git sql: Fix population of lastmsgid for empty buffers 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. ---