]> git.wh0rd.org Git - tt-rss.git/commitdiff
add db_affected_rows
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 16 May 2006 12:37:35 +0000 (13:37 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 16 May 2006 12:37:35 +0000 (13:37 +0100)
db.php

diff --git a/db.php b/db.php
index fb2b8a4b95e64be232a729752ae42887cc237371..00a6bc153a06d7011565728c51d4558e7eff84c9 100644 (file)
--- a/db.php
+++ b/db.php
@@ -123,4 +123,10 @@ function db_close($link) {
        }
 }
 
+function db_affected_rows($link, $result) {
+       if (DB_TYPE == "pgsql") {
+               return pg_affected_rows($result);
+       } else if (DB_TYPE == "mysql") {
+               return mysql_affected_rows($link);
+       }
 ?>