Skip to content

Commit

Permalink
PostgreReflector: fix reflection of matview columns on PostgreSQL 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
JanRossler authored and dg committed Oct 22, 2021
1 parent f106aaa commit 5c2890c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/PostgreReflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function getColumns(string $table): array
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
Expand Down

0 comments on commit 5c2890c

Please sign in to comment.