diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-10 15:26:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-10 15:26:20 +0100 |
commit | 17522251189bbd106f62f445ac7ee57ab8e4afc2 (patch) | |
tree | 4e72099be7a33a23fe1cb0a7e422c073dedf1ee8 | |
parent | 6e07ca332cb9f743fdd20408641c1248f72a605a (diff) | |
download | exchange-17522251189bbd106f62f445ac7ee57ab8e4afc2.tar.xz |
-fix issues
-rw-r--r-- | src/pq/pq_query_helper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pq/pq_query_helper.c b/src/pq/pq_query_helper.c index 1b2b00488..d25b3223e 100644 --- a/src/pq/pq_query_helper.c +++ b/src/pq/pq_query_helper.c @@ -888,6 +888,7 @@ qconv_array ( Oid oid_f; Oid oid_c; + buffer_lengths = GNUNET_new_array (num, size_t); /* hoist out of loop? */ GNUNET_assert (GNUNET_OK == GNUNET_PQ_get_oid_by_name (meta->db, @@ -899,7 +900,7 @@ qconv_array ( &oid_f)); GNUNET_assert (GNUNET_OK == GNUNET_PQ_get_oid_by_name (meta->db, - "text", + "varchar", &oid_c)); for (size_t i = 0; i<num; i++) { @@ -917,6 +918,7 @@ qconv_array ( total_size += len; RETURN_UNLESS (total_size >= y); } + sizes = buffer_lengths; break; } case TALER_PQ_array_of_blinded_denom_sig: @@ -1041,7 +1043,7 @@ qconv_array ( &oid_f)); GNUNET_assert (GNUNET_OK == GNUNET_PQ_get_oid_by_name (meta->db, - "text", + "varchar", &oid_c)); { struct TALER_PQ_AmountCurrencyP am; |