From 80affcfa61096550cb2fede0d06b4551151e4e0a Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Mon, 13 May 2019 17:06:57 +0200 Subject: [PATCH] CLose #120: Mark signed a request doesn't work PostgreSQL requires in INT type instead of bool, when setting the signed column. --- lib/pki_x509req.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pki_x509req.cpp b/lib/pki_x509req.cpp index efbc005d..e7f5419a 100644 --- a/lib/pki_x509req.cpp +++ b/lib/pki_x509req.cpp @@ -61,7 +61,7 @@ void pki_x509req::markSigned(bool signe) TransThrow(); SQL_PREPARE(q, "UPDATE requests SET signed=? WHERE item=?"); - q.bindValue(0, signe); + q.bindValue(0, signe ? 1 : 0); q.bindValue(1, sqlItemId); q.exec();