diff options
| author | MikeB <ipso@snappymail.ca> | 2014-09-04 08:45:41 -0700 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2014-09-09 01:27:52 +0200 |
| commit | 0847d4a011d93455f46ed25fceb18b427e73595a (patch) | |
| tree | ee8b09bf0567aa42e8b7fbc1d59a60f8bdb11528 /drivers/adodb-postgres7.inc.php | |
| parent | 3eb0913eecf148a7e0800fd7b4aa41af166254a3 (diff) | |
| download | adodb-0847d4a011d93455f46ed25fceb18b427e73595a.tar.gz adodb-0847d4a011d93455f46ed25fceb18b427e73595a.tar.bz2 adodb-0847d4a011d93455f46ed25fceb18b427e73595a.zip | |
pgsql: Stop using legacy function aliases
Use proper PostgreSQL function names rather than legacy aliases that
arent documented anymore. This should continue to work back to PHP v4.2
still, and also works with HHVM.
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Diffstat (limited to 'drivers/adodb-postgres7.inc.php')
| -rw-r--r-- | drivers/adodb-postgres7.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/adodb-postgres7.inc.php b/drivers/adodb-postgres7.inc.php index 6efc599b..0c0ae862 100644 --- a/drivers/adodb-postgres7.inc.php +++ b/drivers/adodb-postgres7.inc.php @@ -255,9 +255,9 @@ class ADODB_postgres7 extends ADODB_postgres64 { $rez = pg_query($this->_connectionID,$sql); } // check if no data returned, then no need to create real recordset - if ($rez && pg_numfields($rez) <= 0) { + if ($rez && pg_num_fields($rez) <= 0) { if (is_resource($this->_resultid) && get_resource_type($this->_resultid) === 'pgsql result') { - pg_freeresult($this->_resultid); + pg_free_result($this->_resultid); } $this->_resultid = $rez; return true; |
