diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-07-28 16:19:21 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-07-28 16:19:21 +0200 |
commit | 94e5193bffd5b2107710ba4fab0405ba22ea6dcf (patch) | |
tree | 03204300c92e44808e86ad86ccb6872d15b0b0a0 /src/pq/pq_common.h | |
parent | 1c923855a31b35e28706ba2fafa2d2bccc7ee775 (diff) | |
download | exchange-94e5193bffd5b2107710ba4fab0405ba22ea6dcf.tar.xz |
[pq] added helper to load oids of composite types
- TALER_PQ_load_oids_for_composite_types added
- Called during postgres-initialization
Diffstat (limited to 'src/pq/pq_common.h')
-rw-r--r-- | src/pq/pq_common.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/pq/pq_common.h b/src/pq/pq_common.h index 36ba62a40..79c9d83ca 100644 --- a/src/pq/pq_common.h +++ b/src/pq/pq_common.h @@ -48,20 +48,6 @@ enum TALER_PQ_ArrayType }; /** - * The header for a postgresql array in binary format. note that this a - * simplified special case of the general structure (which contains pointers), - * as we only support one-dimensional arrays. - */ -struct TALER_PQ_ArrayHeader_P -{ - uint32_t ndim; /* number of dimensions. we only support ndim = 1 */ - uint32_t has_null; - uint32_t oid; - uint32_t dim; /* size of the array */ - uint32_t lbound; /* index value of first element in the db (default: 1). */ -} __attribute__((packed)); - -/** * Memory representation of an taler amount record for Postgres. * * All values need to be in network-byte-order. @@ -92,5 +78,6 @@ struct TALER_PQ_Amount_P .f = htonl ((amount)->fraction) \ } + #endif /* TALER_PQ_COMMON_H_ */ /* end of pg/pq_common.h */ |