commit 132cce0ec0f3dcf32c19df98a6e4416701197fb9
parent 154f964aab5df00cbadaa015474c2b323161aa96
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 23 Apr 2023 23:03:33 +0200
only update credentials if they were actually given
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backenddb/pg_update_account.c b/src/backenddb/pg_update_account.c
@@ -51,7 +51,7 @@ TMH_PG_update_account (
"update_account",
"UPDATE merchant_accounts SET"
" credit_facade_url=$3"
- ",credit_facade_credentials=$4"
+ ",credit_facade_credentials=COALESCE($4,credit_facade_credentials)"
",active=$5"
" WHERE h_wire=$2"
" AND merchant_serial="