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.
This commit is contained in:
Dimitri Fontaine 2022-08-19 16:55:05 +02:00
parent 75c00b5ff4
commit 2af1a31be4
No known key found for this signature in database
GPG Key ID: 38096AB1A90BF6D4

View File

@ -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: