aboutsummaryrefslogtreecommitdiff
path: root/src/pq/pq_query_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq/pq_query_helper.c')
-rw-r--r--src/pq/pq_query_helper.c36
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 (
576 576
577 577
578/** 578/**
579 * The header for a Postgresql array in binary format. Note that this a
580 * simplified special case of the general structure (which contains pointers),
581 * as we only support one-dimensional arrays.
582 */
583struct pq_array_header
584{
585 uint32_t ndim; /* Number of dimensions. We only support ndim = 1 */
586 uint32_t has_null;
587 uint32_t oid;
588 uint32_t dim; /* Size of the array */
589 uint32_t lbound; /* Index value of first element in the DB (default: 1). */
590} __attribute__((packed));
591
592/**
593 * Internal types that are supported as array types.
594 */
595
596enum array_types
597{
598 array_of_bool,
599 array_of_uint16,
600 array_of_uint32,
601 array_of_uint64,
602 array_of_byte, /* buffers of (char *), (void *), ... */
603 array_of_string, /* NULL-terminated (char *) */
604 array_of_abs_time,
605 array_of_rel_time,
606 array_of_timestamp,
607 array_of_MAX, /* must be last */
608};
609
610/**
611 * Closure for the array type handlers. 579 * Closure for the array type handlers.
612 * 580 *
613 * May contain sizes information for the data, given (and handled) by the 581 * May contain sizes information for the data, given (and handled) by the
@@ -631,8 +599,8 @@ struct qconv_array_cls
631 599
632 /** 600 /**
633 * If true, the array parameter to the data pointer to the qconv_array is a 601 * If true, the array parameter to the data pointer to the qconv_array is a
634 * continuous byte array of data, either with @a same_size each or sizes provided bytes 602 * continuous byte array of data, either with @a same_size each or sizes
635 * by @a sizes; 603 * provided bytes by @a sizes;
636 */ 604 */
637 bool continuous; 605 bool continuous;
638 606