<?php
/**
 * Replace function pg_affected_rows()
 *
 * pg_cmdtuples() is allegedly undocumented, but seems to do the same thing as
 * pg_affected_rows(). DB used this before switching to the newer function.
 *
 * @category    PHP
 * @package     PHP_Compat
 * @copyright   (c) 2005 Ian Eure <ieure@php.net>
 * @license     http://www.php.net/license/3_0.txt  PHP License 3.0
 * @link        http://php.net/function.pg_affectd_rows
 * @author      Ian Eure <ieure@php.net>
 * @version     Release: @version@
 * @version     CVS:     $Revision$
 * @since       PHP 4.2.0
 */


if (!function_exists('pg_affected_rows')) {
    function 
pg_affected_rows($resource)
    {
        return 
pg_cmdtuples($resource);
    }
}

?>