From 69d9b381dcd8ad3dbb14a6db6786a392856fb5a1 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 15 Feb 2019 00:07:39 +0100 Subject: [PATCH] Fix previous patch: also process the bad row. The bad row needs to go to the reject file, and its condition error message to the reject log. Ooops, forgot. See #836. --- src/pg-copy/copy-retry-batch.lisp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pg-copy/copy-retry-batch.lisp b/src/pg-copy/copy-retry-batch.lisp index 2491aad..9e15fee 100644 --- a/src/pg-copy/copy-retry-batch.lisp +++ b/src/pg-copy/copy-retry-batch.lisp @@ -77,6 +77,7 @@ (copy-partial-batch table-name columns batch 1 pos)) (postgresql-retryable (condition) (pomo:execute "ROLLBACK") + (process-bad-row table condition (aref (batch-data batch) pos)) (if first-error ;; the first error has been logged about already (setf first-error nil)