From 43c89c323accdce3d39f716edd0ad1320c4e02df Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 22 Sep 2015 10:46:26 +1000 Subject: [PATCH] ckdb - correct markersummary param count --- src/ckdb.h | 2 +- src/ckdb_dbio.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 8b4360be..ded07a54 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -55,7 +55,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.3" -#define CKDB_VERSION DB_VERSION"-1.320" +#define CKDB_VERSION DB_VERSION"-1.321" #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 23abdbed..a5de06e1 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -184,6 +184,7 @@ char *pqerrmsg(PGconn *conn) #define PQPARAM23 PQPARAM16 ",$17,$18,$19,$20,$21,$22,$23" #define PQPARAM26 PQPARAM22 ",$23,$24,$25,$26" #define PQPARAM27 PQPARAM26 ",$27" +#define PQPARAM28 PQPARAM26 ",$27,$28" #define PARCHK(_par, _params) do { \ if (_par != (int)(sizeof(_params)/sizeof(_params[0]))) { \ @@ -6303,7 +6304,7 @@ bool markersummary_add(PGconn *conn, K_ITEM *ms_item, char *by, char *code, "diffrej,shareacc,sharesta,sharedup,sharehi,sharerej," "sharecount,errorcount,firstshare,lastshare,firstshareacc," "lastshareacc,lastdiffacc" - MODIFYDATECONTROL ") values (" PQPARAM26 ")"; + MODIFYDATECONTROL ") values (" PQPARAM28 ")"; LOGDEBUG("%s() adding ms %"PRId64"/%"PRId64"/%s/%.0f", __func__, row->markerid, row->userid,