aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/plugin_psycstore_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-25 16:48:48 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-25 17:05:22 +0200
commit2c6b87e1974c502a2fc074050c41daa4674dbdc0 (patch)
tree5f2629ee3fc2fb57987e0dd4e61453bcfc1df640 /src/psycstore/plugin_psycstore_postgres.c
parent2d440f03aede98ef50c3b851d3b13439e112447f (diff)
start to fix some test issues with postgres psycstore
Diffstat (limited to 'src/psycstore/plugin_psycstore_postgres.c')
-rw-r--r--src/psycstore/plugin_psycstore_postgres.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c
index b8010af0ae..5bf0ba7062 100644
--- a/src/psycstore/plugin_psycstore_postgres.c
+++ b/src/psycstore/plugin_psycstore_postgres.c
@@ -465,8 +465,10 @@ channel_key_store (struct Plugin *plugin,
GNUNET_PQ_query_param_end
};
- if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
- GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_channel_key", params))
+ if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
+ GNUNET_PQ_eval_prepared_non_select (plugin->dbh,
+ "insert_channel_key",
+ params))
return GNUNET_SYSERR;
return GNUNET_OK;
@@ -482,7 +484,7 @@ slave_key_store (struct Plugin *plugin,
GNUNET_PQ_query_param_end
};
- if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
+ if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_slave_key", params))
return GNUNET_SYSERR;
@@ -508,8 +510,7 @@ postgres_membership_store (void *cls,
uint64_t group_generation)
{
struct Plugin *plugin = cls;
-
- uint32_t idid_join = (uint32_t)did_join;
+ uint32_t idid_join = (uint32_t) did_join;
GNUNET_assert (TRANSACTION_NONE == plugin->transaction);
@@ -535,8 +536,10 @@ postgres_membership_store (void *cls,
GNUNET_PQ_query_param_end
};
- if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
- GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_membership", params))
+ if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
+ GNUNET_PQ_eval_prepared_non_select (plugin->dbh,
+ "insert_membership",
+ params))
return GNUNET_SYSERR;
return GNUNET_OK;