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