1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

PostgreReflector: fix reflection of matview columns on PostgreSQL 12+

This commit is contained in:
Jan Rössler
2021-10-22 11:38:33 +02:00
committed by David Grudl
parent 8270b7c1c3
commit 0a29fcb502

View File

@@ -102,7 +102,7 @@ class PostgreReflector implements Dibi\Reflector
a.atttypmod-4 AS character_maximum_length,
NOT a.attnotnull AS is_nullable,
a.attnum AS ordinal_position,
adef.adsrc AS column_default
pg_get_expr(adef.adbin, adef.adrelid) AS column_default
FROM
pg_attribute a
JOIN pg_type ON a.atttypid = pg_type.oid