summaryrefslogtreecommitdiff
path: root/src/pq/pq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-06 11:14:11 +0000
commitf5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch)
treeb59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/pq/pq.c
parent6db64c5eae089e1d81cafbb051f65412790d16bc (diff)
-fix misc issues
Diffstat (limited to 'src/pq/pq.c')
-rw-r--r--src/pq/pq.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c
index 43186c41e..46463a190 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -119,15 +119,13 @@ GNUNET_PQ_cleanup_result (struct GNUNET_PQ_ResultSpec *rs)
/**
* Extract results from a query result according to the given
- * specification. If colums are NULL, the destination is not
- * modified, and #GNUNET_NO is returned.
+ * specification.
*
* @param result result to process
* @param[in,out] rs result specification to extract for
* @param row row from the result to extract
* @return
* #GNUNET_YES if all results could be extracted
- * #GNUNET_NO if at least one result was NULL
* #GNUNET_SYSERR if a result was invalid (non-existing field)
*/
int
@@ -136,7 +134,6 @@ GNUNET_PQ_extract_result (PGresult *result,
int row)
{
unsigned int i;
- int had_null = GNUNET_NO;
int ret;
for (i=0; NULL != rs[i].conv; i++)
@@ -150,7 +147,7 @@ GNUNET_PQ_extract_result (PGresult *result,
spec->fname,
&spec->dst_size,
spec->dst);
- if (GNUNET_SYSERR == ret)
+ if (GNUNET_OK != ret)
{
GNUNET_PQ_cleanup_result (rs);
return GNUNET_SYSERR;
@@ -158,8 +155,6 @@ GNUNET_PQ_extract_result (PGresult *result,
if (NULL != spec->result_size)
*spec->result_size = spec->dst_size;
}
- if (GNUNET_YES == had_null)
- return GNUNET_NO;
return GNUNET_OK;
}