commit a7a5ffd520d0f3e76202d14097dc7eb6e51f5c4e
parent 1d731a7200f17e2ad2d7406e0e0828be9c69db26
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 26 Aug 2019 01:09:49 +0200
fix wrong use of GNUNET_PQ_query_param_auto_from_type
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1162,9 +1162,9 @@ postgres_insert_session_info (void *cls,
struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_auto_from_type (session_id),
- GNUNET_PQ_query_param_auto_from_type (resource_url),
- GNUNET_PQ_query_param_auto_from_type (order_id),
+ GNUNET_PQ_query_param_string (session_id),
+ GNUNET_PQ_query_param_string (resource_url),
+ GNUNET_PQ_query_param_string (order_id),
GNUNET_PQ_query_param_auto_from_type (merchant_pub),
GNUNET_PQ_query_param_absolute_time (&now),
GNUNET_PQ_query_param_end
@@ -1197,8 +1197,8 @@ postgres_find_session_info (void *cls,
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_auto_from_type (resource_url),
- GNUNET_PQ_query_param_auto_from_type (session_id),
+ GNUNET_PQ_query_param_string (resource_url),
+ GNUNET_PQ_query_param_string (session_id),
GNUNET_PQ_query_param_auto_from_type (merchant_pub),
GNUNET_PQ_query_param_end
};