mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fix: regtype is not supported in aurora serverless v2 (#11568)
This commit is contained in:
parent
17cf837ba9
commit
6e9f20d4d9
@ -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" = ( ` +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user