From: Manuel Nickschas Date: Sun, 14 Sep 2014 15:22:37 +0000 (+0200) Subject: Merge pull request #88 from mamarley/psqllimitallfix X-Git-Tag: 0.11.0~12 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=a20c9bf454288c998cb2a5d2a1fdf0927c93f1f3;hp=5a259061411e123d89059d815d1ea0f7cfcb3401 Merge pull request #88 from mamarley/psqllimitallfix Use null QVariant instead of "ALL" for select limit on psql --- diff --git a/src/core/postgresqlstorage.cpp b/src/core/postgresqlstorage.cpp index 56aaf54c..bb58da17 100644 --- a/src/core/postgresqlstorage.cpp +++ b/src/core/postgresqlstorage.cpp @@ -1516,7 +1516,7 @@ QList PostgreSqlStorage::requestMsgs(UserId user, BufferId bufferId, Ms if (limit != -1) params << limit; else - params << "ALL"; + params << QVariant(QVariant::Int); QSqlQuery query = executePreparedQuery(queryName, params, db);