commit 6cef54a71174cd5237a293ed82e05e9aac5e7c9d parent 9f4fc2ac6d7143dc5e396caeab4e50673f0bd199 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 8 Oct 2024 13:01:56 +0200 -fix bad deletion Diffstat:
| M | src/auditor/test-auditor.sh | | | 6 | +++--- |
| M | src/auditordb/plugin_auditordb_postgres.c | | | 2 | ++ |
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/auditor/test-auditor.sh b/src/auditor/test-auditor.sh @@ -1044,10 +1044,10 @@ function test_9() { stop_libeufin OLD_ID=$(echo "SELECT bank_transaction FROM libeufin_bank.taler_exchange_incoming JOIN libeufin_bank.bank_account_transactions ON (bank_transaction=bank_transaction_id) WHERE (amount).val=10 ORDER BY bank_transaction LIMIT 1;" | psql "${DB}" -Aqt) \ || exit_fail "Failed to SELECT FROM libeufin_bank.bank_account_transactions!" - OLD_ACC=$(echo "SELECT debtor_payto_uri FROM libeufin_bank.bank_account_transactions WHERE bank_transaction_id='$OLD_ID';" | psql "${DB}" -Aqt) + OLD_ACC=$(echo "SELECT debtor_payto FROM libeufin_bank.bank_account_transactions WHERE bank_transaction_id='$OLD_ID';" | psql "${DB}" -Aqt) echo -n "Modifying $OLD_ID ..." - echo "UPDATE libeufin_bank.bank_account_transactions SET debtor_payto_uri='payto://iban/DE144373' WHERE bank_transaction_id='$OLD_ID';" \ + echo "UPDATE libeufin_bank.bank_account_transactions SET debtor_payto='payto://iban/DE144373' WHERE bank_transaction_id='$OLD_ID';" \ | psql "${DB}" -At run_audit @@ -1063,7 +1063,7 @@ function test_9() { "TESTKUDOS:10" \ "Reported total_misattribution_in wrong" # Undo database modification - echo "UPDATE libeufin_bank.bank_account_transactions SET debtor_payto_uri='$OLD_ACC' WHERE bank_transaction_id='$OLD_ID';" \ + echo "UPDATE libeufin_bank.bank_account_transactions SET debtor_payto='$OLD_ACC' WHERE bank_transaction_id='$OLD_ID';" \ | psql "${DB}" -Atq stop_auditor_httpd full_reload diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c @@ -553,6 +553,8 @@ libtaler_plugin_auditordb_postgres_init (void *cls) = &TAH_PG_update_generic_suppressed; plugin->delete_generic = &TAH_PG_delete_generic; + plugin->delete_wire_out_inconsistency_if_matching + = &TAH_PG_delete_wire_out_inconsistency_if_matching; plugin->update_auditor_progress