diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-27 12:20:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-27 12:20:27 +0000 |
commit | 920b7f6c8d43d32a6ad604a223bb8aa8a3da12d7 (patch) | |
tree | e16b689cf4e6bc4f7032993c1356f0d6e35add66 /src/datacache/plugin_datacache_postgres.c | |
parent | fb948e1e36718621b4dcc92b2a6f54c470812eb4 (diff) |
fixes
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 6bf3c70111..1269790690 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c @@ -406,6 +406,8 @@ postgres_plugin_get (void *cls, PQclear (res); return 0; } + if (iter == NULL) + return cnt; if ( (3 != PQnfields (res)) || (sizeof (uint64_t) != PQfsize (res, 0)) || (sizeof (uint32_t) != PQfsize (res, 1))) @@ -494,9 +496,9 @@ postgres_plugin_del (void *cls) return GNUNET_SYSERR; } if ( (3 != PQnfields (res)) || - (sizeof (uint32_t) != PQfsize (res, 0)) || - (sizeof (uint32_t) != PQfsize (res, 1)) || - (sizeof (GNUNET_HashCode) != PQfsize (res, 2)) ) + (sizeof (size) != PQfsize (res, 0)) || + (sizeof (oid) != PQfsize (res, 1)) || + (sizeof (GNUNET_HashCode) != PQgetlength (res, 0, 2)) ) { GNUNET_break (0); PQclear (res); |