From 26a8789a90b21e67effdeac14d87ea8c36dea4c8 Mon Sep 17 00:00:00 2001 From: gdiaz Date: Tue, 9 Aug 2022 00:29:55 +0200 Subject: [PATCH 1/3] Fixed types for contype (char) and concat (text) --- src/PostgREST/DbStructure.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostgREST/DbStructure.hs b/src/PostgREST/DbStructure.hs index 6a2a5b583a..9ffb701994 100644 --- a/src/PostgREST/DbStructure.hs +++ b/src/PostgREST/DbStructure.hs @@ -656,7 +656,7 @@ allViewsKeyDependencies = pks_fks as ( -- pk + fk referencing col select - contype, + cast(contype as text) contype, conname, conrelid as resorigtbl, unnest(conkey) as resorigcol From eff2d538b0868da4d88d79c2c584e721473ea186 Mon Sep 17 00:00:00 2001 From: gdiaz Date: Tue, 9 Aug 2022 03:33:22 +0200 Subject: [PATCH 2/3] Added changelog for fix #2410 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d94ab5cd..c9fafc71c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - #2342, Fix inaccurate result count when an inner embed was selected after a normal embed in the query string - @laurenceisla - #2376, OPTIONS requests no longer start an empty database transaction - @steve-chavez - #2395, Allow using columns with dollar sign($) without double quoting in filters and `select` - @steve-chavez + - #2410, Fix loop crash error on startup in Postgres 15 beta 2. Log: "UNION types \"char\" and text cannot be matched". - @yevon ### Changed From c9c3404ade8a014287da0248ab4bc384dd3fe146 Mon Sep 17 00:00:00 2001 From: gdiaz Date: Tue, 16 Aug 2022 11:19:02 +0200 Subject: [PATCH 3/3] Modified cast as text syntax for contype --- src/PostgREST/DbStructure.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostgREST/DbStructure.hs b/src/PostgREST/DbStructure.hs index 9ffb701994..3d69a584c3 100644 --- a/src/PostgREST/DbStructure.hs +++ b/src/PostgREST/DbStructure.hs @@ -656,7 +656,7 @@ allViewsKeyDependencies = pks_fks as ( -- pk + fk referencing col select - cast(contype as text) contype, + contype::text as contype, conname, conrelid as resorigtbl, unnest(conkey) as resorigcol