diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-15 19:06:27 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-15 19:06:27 +0100 |
commit | 6120e636fb6b7890a497530781c121648098e5de (patch) | |
tree | 511e20a0f89765f426c255c8fe3f644e7d56d5d3 /src/backenddb/plugin_merchantdb_postgres.c | |
parent | a32f8bbd641afd21a27309c6a8e80a7869118aef (diff) | |
download | merchant-6120e636fb6b7890a497530781c121648098e5de.tar.gz merchant-6120e636fb6b7890a497530781c121648098e5de.tar.bz2 merchant-6120e636fb6b7890a497530781c121648098e5de.zip |
use GNUNET_PQ instead of removed TALER_PQ
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 4f6b6a3e..b5bb985f 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -158,21 +158,21 @@ postgres_store_payment (void *cls, PGresult *res; ExecStatusType status; - struct TALER_PQ_QueryParam params[] = { - TALER_PQ_query_param_auto_from_type (h_contract), - TALER_PQ_query_param_auto_from_type (h_wire), - TALER_PQ_query_param_uint64 (&transaction_id), - TALER_PQ_query_param_absolute_time (×tamp), - TALER_PQ_query_param_absolute_time (&refund), + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_auto_from_type (h_contract), + GNUNET_PQ_query_param_auto_from_type (h_wire), + GNUNET_PQ_query_param_uint64 (&transaction_id), + GNUNET_PQ_query_param_absolute_time (×tamp), + GNUNET_PQ_query_param_absolute_time (&refund), TALER_PQ_query_param_amount (amount_without_fee), - TALER_PQ_query_param_auto_from_type (coin_pub), + GNUNET_PQ_query_param_auto_from_type (coin_pub), TALER_PQ_query_param_json (mint_proof), - TALER_PQ_query_param_end + GNUNET_PQ_query_param_end }; - res = TALER_PQ_exec_prepared (pg->conn, - "insert_payment", - params); + res = GNUNET_PQ_exec_prepared (pg->conn, + "insert_payment", + params); status = PQresultStatus (res); if (PGRES_COMMAND_OK != status) @@ -224,13 +224,13 @@ postgres_check_payment(void *cls, PGresult *res; ExecStatusType status; - struct TALER_PQ_QueryParam params[] = { - TALER_PQ_query_param_uint64 (&transaction_id), - TALER_PQ_query_param_end + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_uint64 (&transaction_id), + GNUNET_PQ_query_param_end }; - res = TALER_PQ_exec_prepared (pg->conn, - "check_payment", - params); + res = GNUNET_PQ_exec_prepared (pg->conn, + "check_payment", + params); status = PQresultStatus (res); if (PGRES_TUPLES_OK != status) |