From cbb0cb9ae23bfe46abab73f6402d1c813ef478ea Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 17 Jun 2014 00:36:50 +1000 Subject: [PATCH] ckdb - correct param count for workinfo_add --- src/ckdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index b062d091..12054252 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -2031,7 +2031,7 @@ static int64_t workinfo_add(PGconn *conn, char *workinfoidstr, char *poolinstanc ins = "insert into workinfo " "(workinfoid,transactiontree,merklehash,prevhash," "coinbase1,coinbase2,version,bits,ntime,reward" - HISTORYDATECONTROL ") values (" PQPARAM16 ")"; + HISTORYDATECONTROL ") values (" PQPARAM15 ")"; res = PQexecParams(conn, ins, par, NULL, (const char **)params, NULL, NULL, 0); rescode = PQresultStatus(res);