Browse Source

ckdb - correct param count for workinfo_add

master
kanoi 11 years ago
parent
commit
cbb0cb9ae2
  1. 2
      src/ckdb.c

2
src/ckdb.c

@ -2031,7 +2031,7 @@ static int64_t workinfo_add(PGconn *conn, char *workinfoidstr, char *poolinstanc
ins = "insert into workinfo " ins = "insert into workinfo "
"(workinfoid,transactiontree,merklehash,prevhash," "(workinfoid,transactiontree,merklehash,prevhash,"
"coinbase1,coinbase2,version,bits,ntime,reward" "coinbase1,coinbase2,version,bits,ntime,reward"
HISTORYDATECONTROL ") values (" PQPARAM16 ")"; HISTORYDATECONTROL ") values (" PQPARAM15 ")";
res = PQexecParams(conn, ins, par, NULL, (const char **)params, NULL, NULL, 0); res = PQexecParams(conn, ins, par, NULL, (const char **)params, NULL, NULL, 0);
rescode = PQresultStatus(res); rescode = PQresultStatus(res);

Loading…
Cancel
Save