diff options
Diffstat (limited to 'src/backenddb/pg_update_account.c')
-rw-r--r-- | src/backenddb/pg_update_account.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backenddb/pg_update_account.c b/src/backenddb/pg_update_account.c index 3e36596d..7458c095 100644 --- a/src/backenddb/pg_update_account.c +++ b/src/backenddb/pg_update_account.c @@ -30,19 +30,20 @@ enum GNUNET_DB_QueryStatus TMH_PG_update_account ( void *cls, const char *id, - const struct TALER_MERCHANTDB_AccountDetails *account_details) + const struct TALER_MerchantWireHashP *h_wire, + const char *credit_facade_url, + const json_t *credit_facade_credentials) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_string (id), - GNUNET_PQ_query_param_auto_from_type (&account_details->h_wire), - NULL ==account_details->credit_facade_url + GNUNET_PQ_query_param_auto_from_type (h_wire), + NULL == credit_facade_url ? GNUNET_PQ_query_param_null () - : GNUNET_PQ_query_param_string (account_details->credit_facade_url), - NULL == account_details->credit_facade_credentials + : GNUNET_PQ_query_param_string (credit_facade_url), + NULL == credit_facade_credentials ? GNUNET_PQ_query_param_null () - : TALER_PQ_query_param_json (account_details->credit_facade_credentials), - GNUNET_PQ_query_param_bool (account_details->active), + : TALER_PQ_query_param_json (credit_facade_credentials), GNUNET_PQ_query_param_end }; @@ -52,7 +53,6 @@ TMH_PG_update_account ( "UPDATE merchant_accounts SET" " credit_facade_url=$3" ",credit_facade_credentials=COALESCE($4,credit_facade_credentials)" - ",active=$5" " WHERE h_wire=$2" " AND merchant_serial=" " (SELECT merchant_serial" |