diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-04-23 23:03:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-04-23 23:03:33 +0200 |
commit | 132cce0ec0f3dcf32c19df98a6e4416701197fb9 (patch) | |
tree | a7ffa3654c125842e0890955b16ada3d37c85d0e /src/backenddb/pg_update_account.c | |
parent | 154f964aab5df00cbadaa015474c2b323161aa96 (diff) |
only update credentials if they were actually given
Diffstat (limited to 'src/backenddb/pg_update_account.c')
-rw-r--r-- | src/backenddb/pg_update_account.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backenddb/pg_update_account.c b/src/backenddb/pg_update_account.c index 0a95a94c..3e36596d 100644 --- 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=" |