From 6f078daeb9deff8347722d0e816900bcada1b97a Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sat, 26 Mar 2016 17:51:38 +0100 Subject: [PATCH] Ensure logging of errors. The first error of a batch was lost somewhere in the recent changes. My current best guess is that the rewrite of the copy-batch function made the handler-bind form setup by the handling-pgsql-notices macro ineffective, but I can't see why that is. See #85. --- src/pgsql/pgsql.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pgsql/pgsql.lisp b/src/pgsql/pgsql.lisp index fc87e46..1a5d677 100644 --- a/src/pgsql/pgsql.lisp +++ b/src/pgsql/pgsql.lisp @@ -84,7 +84,9 @@ ;; normal behavior, on-error-stop being nil ;; clean the current transaction before retrying new ones - (retry-batch table columns batch batch-rows condition))) + (progn + (log-message :error "~a" condition) + (retry-batch table columns batch batch-rows condition)))) (condition (c) ;; non retryable failures