diff options
Diffstat (limited to 'src/pq/pq_query_helper.c')
-rw-r--r-- | src/pq/pq_query_helper.c | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index 0d9371bd5..f57fb338c 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c @@ -576,38 +576,6 @@ GNUNET_PQ_query_param_timestamp_nbo ( /** - * 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 pq_array_header -{ - 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)); - -/** - * Internal types that are supported as array types. - */ - -enum array_types -{ - array_of_bool, - array_of_uint16, - array_of_uint32, - array_of_uint64, - array_of_byte, /* buffers of (char *), (void *), ... */ - array_of_string, /* NULL-terminated (char *) */ - array_of_abs_time, - array_of_rel_time, - array_of_timestamp, - array_of_MAX, /* must be last */ -}; - -/** * Closure for the array type handlers. * * May contain sizes information for the data, given (and handled) by the @@ -631,8 +599,8 @@ struct qconv_array_cls /** * If true, the array parameter to the data pointer to the qconv_array is a - * continuous byte array of data, either with @a same_size each or sizes provided bytes - * by @a sizes; + * continuous byte array of data, either with @a same_size each or sizes + * provided bytes by @a sizes; */ bool continuous; |