plugin_datacache_postgres.c | plugin_datacache_postgres.c | |||
---|---|---|---|---|
skipping to change at line 343 | skipping to change at line 343 | |||
sizeof (GNUNET_HashCode), | sizeof (GNUNET_HashCode), | |||
sizeof (btype), | sizeof (btype), | |||
}; | }; | |||
const int paramFormats[] = { 1, 1 }; | const int paramFormats[] = { 1, 1 }; | |||
struct GNUNET_TIME_Absolute expiration_time; | struct GNUNET_TIME_Absolute expiration_time; | |||
uint32_t size; | uint32_t size; | |||
unsigned int cnt; | unsigned int cnt; | |||
unsigned int i; | unsigned int i; | |||
PGresult *res; | PGresult *res; | |||
cnt = 0; | ||||
res = | res = | |||
PQexecPrepared (plugin->dbh, (type == 0) ? "getk" : "getkt", | PQexecPrepared (plugin->dbh, (type == 0) ? "getk" : "getkt", | |||
(type == 0) ? 1 : 2, paramValues, paramLengths, | (type == 0) ? 1 : 2, paramValues, paramLengths, | |||
paramFormats, 1); | paramFormats, 1); | |||
if (GNUNET_OK != | if (GNUNET_OK != | |||
check_result (plugin, res, PGRES_TUPLES_OK, "PQexecPrepared", | check_result (plugin, res, PGRES_TUPLES_OK, "PQexecPrepared", | |||
(type == 0) ? "getk" : "getkt", __LINE__)) | (type == 0) ? "getk" : "getkt", __LINE__)) | |||
{ | { | |||
#if DEBUG_POSTGRES | #if DEBUG_POSTGRES | |||
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "datacache-postgres", | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "datacache-postgres", | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |