From ce5a61facefb67706a1dc32ed658934585a2963a Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Wed, 21 Jan 2015 13:01:28 +0100 Subject: [PATCH] Catch PostgreSQL internal errors too, fixes #155. --- src/pgsql/pgsql.lisp | 2 ++ test/csv-hstore.load | 1 + 2 files changed, 3 insertions(+) diff --git a/src/pgsql/pgsql.lisp b/src/pgsql/pgsql.lisp index 162513c..2c75fb3 100644 --- a/src/pgsql/pgsql.lisp +++ b/src/pgsql/pgsql.lisp @@ -32,6 +32,7 @@ ((or cl-postgres-error::data-exception cl-postgres-error::integrity-violation + cl-postgres-error::internal-error cl-postgres-error::insufficient-resources cl-postgres-error::program-limit-exceeded) (condition) (retry-batch table-name columns batch batch-rows condition)))) @@ -201,6 +202,7 @@ ((or cl-postgres-error::data-exception cl-postgres-error::integrity-violation + cl-postgres-error:internal-error cl-postgres-error::insufficient-resources cl-postgres-error::program-limit-exceeded) (next-error-in-batch) diff --git a/test/csv-hstore.load b/test/csv-hstore.load index 7a154b8..be0753c 100644 --- a/test/csv-hstore.load +++ b/test/csv-hstore.load @@ -24,3 +24,4 @@ LOAD CSV 1 email=>foo@example.com,a=>b 2 test=>value 3 a=>b,c=>"quoted hstore value",d=>other +4 baddata