From 4cbe4b3218450bf954118175d11b30ae3a44d9c2 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 23 Jan 2014 14:59:46 +0100 Subject: [PATCH] Manage the whole class of "integrity violation" errors. --- src/pgsql/pgsql.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pgsql/pgsql.lisp b/src/pgsql/pgsql.lisp index 85f7d63..504164b 100644 --- a/src/pgsql/pgsql.lisp +++ b/src/pgsql/pgsql.lisp @@ -93,7 +93,7 @@ details about the format, and format specs." ;; If PostgreSQL signals a data error, process the batch by isolating ;; erroneous data away and retrying the rest. ((or - CL-POSTGRES-ERROR:UNIQUE-VIOLATION + CL-POSTGRES-ERROR:INTEGRITY-VIOLATION CL-POSTGRES-ERROR:DATA-EXCEPTION) (condition) (retry-batch table-name columns batch count condition)))))