Browse Source

ckdb - incorrect param size list in blocks_add

master
kanoi 9 years ago
parent
commit
30233fb4a1
  1. 2
      src/ckdb.h
  2. 3
      src/ckdb_dbio.c

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "1.0.2"
#define CKDB_VERSION DB_VERSION"-1.221"
#define CKDB_VERSION DB_VERSION"-1.222"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

3
src/ckdb_dbio.c

@ -181,6 +181,7 @@ char *pqerrmsg(PGconn *conn)
#define PQPARAM17 PQPARAM16 ",$17"
#define PQPARAM18 PQPARAM16 ",$17,$18"
#define PQPARAM22 PQPARAM16 ",$17,$18,$19,$20,$21,$22"
#define PQPARAM23 PQPARAM16 ",$17,$18,$19,$20,$21,$22,$23"
#define PQPARAM26 PQPARAM22 ",$23,$24,$25,$26"
#define PQPARAM27 PQPARAM26 ",$27"
@ -4421,7 +4422,7 @@ bool blocks_add(PGconn *conn, char *height, char *blockhash,
"clientid,enonce1,nonce2,nonce,reward,confirmed,"
"info,diffacc,diffinv,shareacc,shareinv,elapsed,"
"statsconfirmed"
HISTORYDATECONTROL ") values (" PQPARAM22 ")";
HISTORYDATECONTROL ") values (" PQPARAM23 ")";
if (conn == NULL) {
conn = dbconnect();

Loading…
Cancel
Save