From f12fd39c4cecbfd9be32a4d9ac5cdc2668bce54f Mon Sep 17 00:00:00 2001 From: "francesco.loreti" Date: Wed, 7 Oct 2020 15:28:41 +0300 Subject: [PATCH] Replace d.adsrc that it's removed into postgresql 12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elan Ruusamäe --- packages/zend-db/library/Zend/Db/Adapter/Pdo/Pgsql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/zend-db/library/Zend/Db/Adapter/Pdo/Pgsql.php b/packages/zend-db/library/Zend/Db/Adapter/Pdo/Pgsql.php index 4b23202e2..b6df33c58 100644 --- a/packages/zend-db/library/Zend/Db/Adapter/Pdo/Pgsql.php +++ b/packages/zend-db/library/Zend/Db/Adapter/Pdo/Pgsql.php @@ -156,7 +156,7 @@ public function describeTable($tableName, $schemaName = null) t.typname AS type, a.atttypmod, FORMAT_TYPE(a.atttypid, a.atttypmod) AS complete_type, - d.adsrc AS default_value, + pg_get_expr(d.adbin, d.adrelid) AS default_value, a.attnotnull AS notnull, a.attlen AS length, co.contype,