Fix server error when a postgres view contains geometry columns (#7486)

This commit is contained in:
Oreille
2021-08-18 15:14:46 +02:00
committed by GitHub
parent 3ec8d6443d
commit 02cf1741bb

View File

@@ -57,7 +57,10 @@ export default class Postgres extends KnexPostgres implements SchemaInspector {
SELECT f_table_name as table_name
, f_geometry_column as column_name
, type as data_type
FROM geometries
FROM geometries g
JOIN information_schema.tables
ON g.f_table_name = t.table_name
AND t.table_type = 'BASE TABLE'
WHERE f_table_schema in (?)
`,
[this.explodedSchema.join(',')]