diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-07-30 00:44:38 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-07-30 00:44:38 +0200 |
commit | f0db6d55d72d7985e5a8b1e5c4a874a415a1234f (patch) | |
tree | 0968563b6753b50d0500e70ad6292f70396f0726 /src/pq/pq_common.h | |
parent | dd20aa14ea8d2a4fc4893a747156b84a7bd5ae63 (diff) | |
download | exchange-f0db6d55d72d7985e5a8b1e5c4a874a415a1234f.tar.xz |
[pq] use GNUNET_PQ_get_oid_by_name consistently
Diffstat (limited to 'src/pq/pq_common.h')
-rw-r--r-- | src/pq/pq_common.h | 8 |
1 files changed, 5 insertions, 3 deletions
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), \ |