Skip to content

Commit

Permalink
Update adodb-pdo_pgsql.inc.php (#366)
Browse files Browse the repository at this point in the history
Corrected a Postgresql SQL query that was deprecated after PG 9
  • Loading branch information
hherreraNCQ authored Oct 20, 2024
1 parent 0bb09da commit 31fc084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/adodb/adodb-php/drivers/adodb-pdo_pgsql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ADODB_pdo_pgsql extends ADODB_pdo {
var $_genIDSQL = "SELECT NEXTVAL('%s')";
var $_genSeqSQL = "CREATE SEQUENCE %s START %s";
var $_dropSeqSQL = "DROP SEQUENCE %s";
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";
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";
var $random = 'random()'; /// random function
var $concat_operator='||';

Expand Down

0 comments on commit 31fc084

Please sign in to comment.