diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-26 01:09:49 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-26 01:09:49 +0200 |
commit | a7a5ffd520d0f3e76202d14097dc7eb6e51f5c4e (patch) | |
tree | 4fc31e310deee7d14a4c8172c5dde0de915e8761 | |
parent | 1d731a7200f17e2ad2d7406e0e0828be9c69db26 (diff) | |
download | merchant-a7a5ffd520d0f3e76202d14097dc7eb6e51f5c4e.tar.gz merchant-a7a5ffd520d0f3e76202d14097dc7eb6e51f5c4e.tar.bz2 merchant-a7a5ffd520d0f3e76202d14097dc7eb6e51f5c4e.zip |
fix wrong use of GNUNET_PQ_query_param_auto_from_type
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 7b3f2c3f..01ce78e3 100644 --- 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 }; |