From 2af1a31be40179291f7dbb7d6a103a5679b9b773 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 19 Aug 2022 16:55:05 +0200 Subject: [PATCH] Accept that sometimes the Postgres source connection has a nil variant. In that case we behave the same as when the variant is known to be :pgdg. The only other supported variant at this time being :redshift, that should be okay. --- src/pgsql/pgsql-finalize-catalogs.lisp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pgsql/pgsql-finalize-catalogs.lisp b/src/pgsql/pgsql-finalize-catalogs.lisp index 5684100..65d53d6 100644 --- a/src/pgsql/pgsql-finalize-catalogs.lisp +++ b/src/pgsql/pgsql-finalize-catalogs.lisp @@ -42,6 +42,12 @@ (defmethod adjust-data-types ((catalog catalog) (variant (eql :pgdg))) catalog) +;;; +;;; Accept that sometimes the variant hasn't been specified at all. +;;; +(defmethod adjust-data-types ((catalog catalog) (variant (eql nil))) + catalog) + ;;; ;;; The RedShift case is a little more involved, as shown in their ;;; documentation: