diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-25 16:48:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-25 17:05:22 +0200 |
commit | 2c6b87e1974c502a2fc074050c41daa4674dbdc0 (patch) | |
tree | 5f2629ee3fc2fb57987e0dd4e61453bcfc1df640 /src/psycstore | |
parent | 2d440f03aede98ef50c3b851d3b13439e112447f (diff) | |
download | gnunet-2c6b87e1974c502a2fc074050c41daa4674dbdc0.tar.gz gnunet-2c6b87e1974c502a2fc074050c41daa4674dbdc0.zip |
start to fix some test issues with postgres psycstore
Diffstat (limited to 'src/psycstore')
-rw-r--r-- | src/psycstore/plugin_psycstore_postgres.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c index b8010af0a..5bf0ba706 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, | |||
465 | GNUNET_PQ_query_param_end | 465 | GNUNET_PQ_query_param_end |
466 | }; | 466 | }; |
467 | 467 | ||
468 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != | 468 | if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != |
469 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_channel_key", params)) | 469 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
470 | "insert_channel_key", | ||
471 | params)) | ||
470 | return GNUNET_SYSERR; | 472 | return GNUNET_SYSERR; |
471 | 473 | ||
472 | return GNUNET_OK; | 474 | return GNUNET_OK; |
@@ -482,7 +484,7 @@ slave_key_store (struct Plugin *plugin, | |||
482 | GNUNET_PQ_query_param_end | 484 | GNUNET_PQ_query_param_end |
483 | }; | 485 | }; |
484 | 486 | ||
485 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != | 487 | if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != |
486 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_slave_key", params)) | 488 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_slave_key", params)) |
487 | return GNUNET_SYSERR; | 489 | return GNUNET_SYSERR; |
488 | 490 | ||
@@ -508,8 +510,7 @@ postgres_membership_store (void *cls, | |||
508 | uint64_t group_generation) | 510 | uint64_t group_generation) |
509 | { | 511 | { |
510 | struct Plugin *plugin = cls; | 512 | struct Plugin *plugin = cls; |
511 | 513 | uint32_t idid_join = (uint32_t) did_join; | |
512 | uint32_t idid_join = (uint32_t)did_join; | ||
513 | 514 | ||
514 | GNUNET_assert (TRANSACTION_NONE == plugin->transaction); | 515 | GNUNET_assert (TRANSACTION_NONE == plugin->transaction); |
515 | 516 | ||
@@ -535,8 +536,10 @@ postgres_membership_store (void *cls, | |||
535 | GNUNET_PQ_query_param_end | 536 | GNUNET_PQ_query_param_end |
536 | }; | 537 | }; |
537 | 538 | ||
538 | if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != | 539 | if (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != |
539 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, "insert_membership", params)) | 540 | GNUNET_PQ_eval_prepared_non_select (plugin->dbh, |
541 | "insert_membership", | ||
542 | params)) | ||
540 | return GNUNET_SYSERR; | 543 | return GNUNET_SYSERR; |
541 | 544 | ||
542 | return GNUNET_OK; | 545 | return GNUNET_OK; |