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,