From f0db6d55d72d7985e5a8b1e5c4a874a415a1234f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Sun, 30 Jul 2023 00:44:38 +0200 Subject: [pq] use GNUNET_PQ_get_oid_by_name consistently --- src/pq/pq_common.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/pq/pq_common.h') diff --git a/src/pq/pq_common.h b/src/pq/pq_common.h index 26137f422..d479ce5bb 100644 --- a/src/pq/pq_common.h +++ b/src/pq/pq_common.h @@ -67,11 +67,13 @@ struct TALER_PQ_Amount_P * * @param db postgres-context of type `struct GNUNET_PQ_Context *` * @param amount amount of type `struct TALER_Amount *` + * @param oid_v OID of the INT8 type in postgres + * @param oid_f OID of the INT4 type in postgres */ -#define MAKE_TALER_PQ_AMOUNT_P(db,amount) \ +#define MAKE_TALER_PQ_AMOUNT_P(db,amount,oid_v,oid_f) \ { \ - .oid_v = htonl (GNUNET_PQ_get_oid ((db), GNUNET_PQ_DATATYPE_INT8)), \ - .oid_f = htonl (GNUNET_PQ_get_oid ((db), GNUNET_PQ_DATATYPE_INT4)), \ + .oid_v = htonl (oid_v), \ + .oid_f = htonl (oid_f), \ .sz_v = htonl (sizeof((amount)->value)), \ .sz_f = htonl (sizeof((amount)->fraction)), \ .v = GNUNET_htonll ((amount)->value), \ -- cgit v1.2.3