mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 14:46:50 +02:00
PostgreReflector: fix reflection of matview columns on PostgreSQL 12+
This commit is contained in:
@@ -102,7 +102,7 @@ class PostgreReflector implements Dibi\Reflector
|
|||||||
a.atttypmod-4 AS character_maximum_length,
|
a.atttypmod-4 AS character_maximum_length,
|
||||||
NOT a.attnotnull AS is_nullable,
|
NOT a.attnotnull AS is_nullable,
|
||||||
a.attnum AS ordinal_position,
|
a.attnum AS ordinal_position,
|
||||||
adef.adsrc AS column_default
|
pg_get_expr(adef.adbin, adef.adrelid) AS column_default
|
||||||
FROM
|
FROM
|
||||||
pg_attribute a
|
pg_attribute a
|
||||||
JOIN pg_type ON a.atttypid = pg_type.oid
|
JOIN pg_type ON a.atttypid = pg_type.oid
|
||||||
|
Reference in New Issue
Block a user