summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-26 00:21:15 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-26 00:21:15 +0200
commita23cb140c563860041d930efd481fb3feade9acc (patch)
treecb77bef4551eee7804788cfc5e3356a077471804
parent4dd2fd82dd8dc24dd53f33cb3d48da175ed90108 (diff)
downloadmerchant-a23cb140c563860041d930efd481fb3feade9acc.tar.gz
merchant-a23cb140c563860041d930efd481fb3feade9acc.tar.bz2
merchant-a23cb140c563860041d930efd481fb3feade9acc.zip
oops, call insert_session_info prepared statement correctly
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 1b4828e6..e550bef9 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -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 (session_id),
GNUNET_PQ_query_param_auto_from_type (resource_url),
+ GNUNET_PQ_query_param_auto_from_type (session_id),
GNUNET_PQ_query_param_auto_from_type (merchant_pub),
GNUNET_PQ_query_param_end
};
@@ -1210,7 +1210,7 @@ postgres_find_session_info (void *cls,
// We don't clean up the result spec since we want
// to keep around the memory for order_id.
return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
- "find_contract_terms_history",
+ "find_session_info",
params,
rs);
}