diff --git a/src/ckdb.h b/src/ckdb.h index cf261609..a1f713bc 100644 --- a/src/ckdb.h +++ b/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__ diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index 2a8e5946..f2927d9e 100644 --- a/src/ckdb_dbio.c +++ b/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();