Skip to content

Commit 31fc084

Browse files
authored
Update adodb-pdo_pgsql.inc.php (#366)
Corrected a Postgresql SQL query that was deprecated after PG 9
1 parent 0bb09da commit 31fc084

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vendor/adodb/adodb-php/drivers/adodb-pdo_pgsql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ADODB_pdo_pgsql extends ADODB_pdo {
6060
var $_genIDSQL = "SELECT NEXTVAL('%s')";
6161
var $_genSeqSQL = "CREATE SEQUENCE %s START %s";
6262
var $_dropSeqSQL = "DROP SEQUENCE %s";
63-
var $metaDefaultsSQL = "SELECT d.adnum as num, d.adsrc as def from pg_attrdef d, pg_class c where d.adrelid=c.oid and c.relname='%s' order by d.adnum";
63+
var $metaDefaultsSQL = "SELECT d.adnum as num, pg_get_expr(d.adbin, d.adrelid) as def from pg_attrdef d, pg_class c where d.adrelid=c.oid and c.relname='%s' order by d.adnum";
6464
var $random = 'random()'; /// random function
6565
var $concat_operator='||';
6666

0 commit comments

Comments
 (0)