mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
Fix server error when a postgres view contains geometry columns (#7486)
This commit is contained in:
@@ -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(',')]
|
||||
|
||||
Reference in New Issue
Block a user