diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-10 14:32:31 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-11-10 14:32:31 +0000 |
| commit | d477272a5fd321c30a14bf12604079a8e4346905 (patch) | |
| tree | 6d1cdb6ce0b14e36d0b570721f1c298c9f68f224 /frontends/php/include/db.inc.php | |
| parent | eccdbb7eb91dcee5c1b3a8c2620185961ac496ef (diff) | |
| download | zabbix-d477272a5fd321c30a14bf12604079a8e4346905.tar.gz zabbix-d477272a5fd321c30a14bf12604079a8e4346905.tar.xz zabbix-d477272a5fd321c30a14bf12604079a8e4346905.zip | |
- changed PostgreSQL last OID function to pg_last_oid() (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@3453 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
| -rw-r--r-- | frontends/php/include/db.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php index 8be2f932..922dbfec 100644 --- a/frontends/php/include/db.inc.php +++ b/frontends/php/include/db.inc.php @@ -314,7 +314,8 @@ COpt::savesqlrequest($query); if($DB_TYPE == "POSTGRESQL") { - $oid=pg_getlastoid($result); +// $oid=pg_getlastoid($result); + $oid=pg_last_oid($result); $sql="select $field from $table where oid=$oid"; $result=DBselect($sql); return get_field($result,0,0); |
