aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb/plugin_merchantdb_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index b2a4df69..4b752893 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1486,7 +1486,7 @@ find_transfers_cb (void *cls,
1486{ 1486{
1487 struct FindTransfersContext *ftc = cls; 1487 struct FindTransfersContext *ftc = cls;
1488 1488
1489 for (unsigned int i = 0; i<PQntuples (result); i++) 1489 for (unsigned int i = 0; i<num_results; i++)
1490 { 1490 {
1491 struct TALER_CoinSpendPublicKeyP coin_pub; 1491 struct TALER_CoinSpendPublicKeyP coin_pub;
1492 struct TALER_WireTransferIdentifierRawP wtid; 1492 struct TALER_WireTransferIdentifierRawP wtid;
@@ -1613,7 +1613,7 @@ find_deposits_cb (void *cls,
1613 struct FindDepositsContext *fdc = cls; 1613 struct FindDepositsContext *fdc = cls;
1614 struct PostgresClosure *pg = fdc->pg; 1614 struct PostgresClosure *pg = fdc->pg;
1615 1615
1616 for (unsigned int i = 0; i<PQntuples (result); i++) 1616 for (unsigned int i = 0; i<num_results; i++)
1617 { 1617 {
1618 struct GNUNET_HashCode h_contract_terms; 1618 struct GNUNET_HashCode h_contract_terms;
1619 struct TALER_CoinSpendPublicKeyP coin_pub; 1619 struct TALER_CoinSpendPublicKeyP coin_pub;
@@ -2475,7 +2475,7 @@ postgres_enable_tip_reserve_TR (void *cls,
2475 2475
2476 retries = 0; 2476 retries = 0;
2477 check_connection (pg); 2477 check_connection (pg);
2478RETRY: 2478 RETRY:
2479 if (MAX_RETRIES < ++retries) 2479 if (MAX_RETRIES < ++retries)
2480 return GNUNET_DB_STATUS_SOFT_ERROR; 2480 return GNUNET_DB_STATUS_SOFT_ERROR;
2481 if (GNUNET_OK != 2481 if (GNUNET_OK !=
@@ -2682,7 +2682,7 @@ postgres_authorize_tip_TR (void *cls,
2682 2682
2683 retries = 0; 2683 retries = 0;
2684 check_connection (pg); 2684 check_connection (pg);
2685RETRY: 2685 RETRY:
2686 if (MAX_RETRIES < ++retries) 2686 if (MAX_RETRIES < ++retries)
2687 return TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR; 2687 return TALER_EC_TIP_AUTHORIZE_DB_SOFT_ERROR;
2688 if (GNUNET_OK != 2688 if (GNUNET_OK !=
@@ -2898,7 +2898,7 @@ postgres_pickup_tip_TR (void *cls,
2898 2898
2899 retries = 0; 2899 retries = 0;
2900 check_connection (pg); 2900 check_connection (pg);
2901RETRY: 2901 RETRY:
2902 if (MAX_RETRIES < ++retries) 2902 if (MAX_RETRIES < ++retries)
2903 return TALER_EC_TIP_PICKUP_DB_ERROR_SOFT; 2903 return TALER_EC_TIP_PICKUP_DB_ERROR_SOFT;
2904 if (GNUNET_OK != 2904 if (GNUNET_OK !=