commit 80b826aca4431570da885debd78cb75de81512db
parent 052e3b55b3af20ac744251b9e945af4611422e9f
Author: priscilla <priscilla.huang@efrei.net>
Date: Tue, 21 Feb 2023 12:53:52 -0500
last changes for the implementation of pos_key and pos_algo in the templates table and function
Diffstat:
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -10414,7 +10414,7 @@ postgres_connect (void *cls)
",template_contract"
")"
" SELECT merchant_serial,"
- " $2, $3, $4, $5"
+ " $2, $3, $4, $5, $6"
" FROM merchant_instances"
" WHERE merchant_id=$1"),
/* for postgres_update_template() */
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
@@ -6913,7 +6913,6 @@ check_templates_equal (const struct TALER_MERCHANTDB_TemplateDetails *a,
( (NULL == a->pos_key) && (NULL != b->pos_key)) ||
( (NULL != a->pos_key) && (NULL == b->pos_key)) ||
( (NULL != a->pos_key) && (0 != strcmp (a->pos_key, b->pos_key))) ||
- ( a->pos_algorithm != b->pos_algorithm ) ||
(1 != json_equal (a->template_contract,
b->template_contract)))
return 1;