summaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2022-12-30 08:50:16 -0500
committerpriscilla <priscilla.huang@efrei.net>2022-12-30 08:50:16 -0500
commit73fdf47728e26d8625a85441b8523bca0176868f (patch)
treed557bd0c220db03fb9a4af67c36d22803eff0f5b /src/backenddb
parent2c19f6a6fb180f059fcaeb193dd387c4d6af21b1 (diff)
downloadmerchant-73fdf47728e26d8625a85441b8523bca0176868f.tar.gz
merchant-73fdf47728e26d8625a85441b8523bca0176868f.tar.bz2
merchant-73fdf47728e26d8625a85441b8523bca0176868f.zip
testing using templates
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index e3f5762d..b1f2942a 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -6864,7 +6864,7 @@ postgres_insert_template (void *cls,
GNUNET_PQ_query_param_string (instance_id),
GNUNET_PQ_query_param_string (template_id),
GNUNET_PQ_query_param_string (td->template_description),
- NULL == td->image
+ (NULL == td->image)
? GNUNET_PQ_query_param_null ()
: GNUNET_PQ_query_param_string (td->image),
TALER_PQ_query_param_json (td->template_contract),
@@ -6900,7 +6900,9 @@ postgres_update_template (void *cls,
GNUNET_PQ_query_param_string (instance_id),
GNUNET_PQ_query_param_string (template_id),
GNUNET_PQ_query_param_string (td->template_description),
- GNUNET_PQ_query_param_string (td->image),
+ (NULL == td->image)
+ ? GNUNET_PQ_query_param_null ()
+ : GNUNET_PQ_query_param_string (td->image),
TALER_PQ_query_param_json (td->template_contract),
GNUNET_PQ_query_param_end
};