aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-28 16:22:48 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-28 16:22:48 +0200
commit8f9731e83009f13a8b4e172aec1252bc79c4dee1 (patch)
tree4d454894c302d97e3bfdb9cb820b176f2d8177f6 /src/exchangedb/plugin_exchangedb_postgres.c
parent429aeb9e5e8272f8303f878e5e077bbbb0bf07a2 (diff)
parent94e5193bffd5b2107710ba4fab0405ba22ea6dcf (diff)
Merge branch 'new-amount', lookup OIDs for composites
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 6938ee0a..93ea09cd 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -293,6 +293,15 @@ TEH_PG_internal_setup (struct PostgresClosure *pg)
NULL);
if (NULL == db_conn)
return GNUNET_SYSERR;
+
+ if (GNUNET_OK != TALER_PQ_load_oids_for_composite_types (db_conn))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Failed to load OIDs for composite types\n");
+ GNUNET_PQ_disconnect (db_conn);
+ return GNUNET_SYSERR;
+ }
+
pg->prep_gen++;
pg->conn = db_conn;
}