ckdb - correct param count for workinfo_add

This commit is contained in:
kanoi 2014-06-17 00:36:50 +10:00
parent d406fc3b5e
commit cbb0cb9ae2

View File

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