if (GNUNET_OK !=
GNUNET_POSTGRES_check_result (plugin->dbh,
res,
- PGRES_COMMAND_OK,
+ PGRES_TUPLES_OK,
"PQexecPrepared", "select_membership"))
{
return GNUNET_SYSERR;
res = GNUNET_PQ_exec_prepared (plugin->dbh, "update_message_flags", params_update);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", "update_message_flags"))
+ res,
+ PGRES_COMMAND_OK,
+ "PQexecPrepared","update_message_flags"))
return ret;
PQclear (res);
if (GNUNET_YES ==
GNUNET_POSTGRES_check_result (plugin->dbh,
res,
- PGRES_COMMAND_OK,
+ PGRES_TUPLES_OK,
"PQexecPrepared", stmt))
{
if (PQntuples (res) == 0)
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK == GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_TUPLES_OK,
+ "PQexecPrepared", stmt))
{
if (PQntuples (res) == 0)
ret = GNUNET_NO;
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_TUPLES_OK,
+ "PQexecPrepared", stmt))
{
return GNUNET_SYSERR;
}
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_TUPLES_OK,
+ "PQexecPrepared", stmt))
{
return GNUNET_SYSERR;
}
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_COMMAND_OK,
+ "PQexecPrepared", stmt))
{
return GNUNET_SYSERR;
}
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_COMMAND_OK,
+ "PQexecPrepared", stmt))
{
return GNUNET_SYSERR;
}
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
- res,
- PGRES_COMMAND_OK,
- "PQexecPrepared", stmt))
+ res,
+ PGRES_TUPLES_OK,
+ "PQexecPrepared", stmt))
{
return GNUNET_SYSERR;
}
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
res,
- PGRES_COMMAND_OK,
+ PGRES_TUPLES_OK,
"PQexecPrepared", stmt))
{
break;
res = GNUNET_PQ_exec_prepared (plugin->dbh, stmt, params_select);
if (GNUNET_OK != GNUNET_POSTGRES_check_result (plugin->dbh,
res,
- PGRES_COMMAND_OK,
+ PGRES_TUPLES_OK,
"PQexecPrepared", stmt))
{
break;