From 10cf3b3b65c89b3304a4d4f40c4b1a7eb5e47d14 Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 23 Jan 2023 09:14:25 -0500 Subject: [PATCH] fix SQL syntax --- contrib/gana | 2 +- src/exchangedb/exchange_do_insert_aml_decision.sql | 2 +- src/exchangedb/exchange_do_insert_aml_officer.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/gana b/contrib/gana index 7884adf99..3e659ed54 160000 --- a/contrib/gana +++ b/contrib/gana @@ -1 +1 @@ -Subproject commit 7884adf99ec4d5ccf52b1a5a251b99fb6ab9c2f6 +Subproject commit 3e659ed54023230dd45dbec5664f176e1763d260 diff --git a/src/exchangedb/exchange_do_insert_aml_decision.sql b/src/exchangedb/exchange_do_insert_aml_decision.sql index 480736afa..b3f77c8c4 100644 --- a/src/exchangedb/exchange_do_insert_aml_decision.sql +++ b/src/exchangedb/exchange_do_insert_aml_decision.sql @@ -27,7 +27,7 @@ CREATE OR REPLACE FUNCTION exchange_do_insert_aml_decision( OUT out_last_date INT8) LANGUAGE plpgsql AS $$ - +BEGIN -- Check officer is eligible to make decisions. PERFORM FROM exchange.aml_staff diff --git a/src/exchangedb/exchange_do_insert_aml_officer.sql b/src/exchangedb/exchange_do_insert_aml_officer.sql index 72f813e89..5cb926c07 100644 --- a/src/exchangedb/exchange_do_insert_aml_officer.sql +++ b/src/exchangedb/exchange_do_insert_aml_officer.sql @@ -24,7 +24,7 @@ CREATE OR REPLACE FUNCTION exchange_do_insert_aml_officer( OUT out_last_change INT8) LANGUAGE plpgsql AS $$ - +BEGIN INSERT INTO exchange.aml_staff (decider_pub ,master_sig