From e87477ed31dcab94faf979cb8e01cd23adfa7861 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 6 Jul 2017 03:11:46 +0200 Subject: [PATCH] Restrict condition handling to relevant conditions. In md-methods copy-database function, don't pretend we are able to handle any condition when preparing the PostgreSQL schema, database-error is all we are dealing with there really. --- src/sources/common/md-methods.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sources/common/md-methods.lisp b/src/sources/common/md-methods.lisp index 7744320..0ac4b42 100644 --- a/src/sources/common/md-methods.lisp +++ b/src/sources/common/md-methods.lisp @@ -131,7 +131,7 @@ (when truncate (truncate-tables pgsql-catalog))) - (condition (e) + (cl-postgres:database-error (e) (log-message :fatal "Failed to prepare target PostgreSQL table.") (log-message :fatal "~a" e) (return-from copy-database)))