fix: regtype is not supported in aurora serverless v2 (#11568)

This commit is contained in:
Arseny Yankovsky 2025-08-05 09:31:39 +02:00 committed by GitHub
parent 17cf837ba9
commit 6e9f20d4d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3355,7 +3355,7 @@ export class PostgresQueryRunner
.join(" OR ")
const columnsSql =
`SELECT columns.*, pg_catalog.col_description(('"' || table_catalog || '"."' || table_schema || '"."' || table_name || '"')::regclass::oid, ordinal_position) AS description, ` +
`('"' || "udt_schema" || '"."' || "udt_name" || '"')::"regtype" AS "regtype", pg_catalog.format_type("col_attr"."atttypid", "col_attr"."atttypmod") AS "format_type" ` +
`('"' || "udt_schema" || '"."' || "udt_name" || '"')::"regtype"::text AS "regtype", pg_catalog.format_type("col_attr"."atttypid", "col_attr"."atttypmod") AS "format_type" ` +
`FROM "information_schema"."columns" ` +
`LEFT JOIN "pg_catalog"."pg_attribute" AS "col_attr" ON "col_attr"."attname" = "columns"."column_name" ` +
`AND "col_attr"."attrelid" = ( ` +