CLose #120: Mark signed a request doesn't work

PostgreSQL requires in INT type instead of bool,
when setting the signed column.
This commit is contained in:
Christian Hohnstaedt 2019-05-13 17:06:57 +02:00
parent c7a0f14283
commit 80affcfa61

View File

@ -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();