]> git.wh0rd.org Git - tt-rss.git/commitdiff
headline update uses transactions once again
authorAndrew Dolgov <fox@bah.spb.su>
Tue, 23 Aug 2005 11:17:09 +0000 (12:17 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Tue, 23 Aug 2005 11:17:09 +0000 (12:17 +0100)
functions.php

index f97e958df211ec4c1e92e3f5d0c1b787df08e855..355bc1a97b740c8969757928d4c85b4af5d3e496 100644 (file)
@@ -31,6 +31,7 @@
                $rss = fetch_rss($feed_url);
                error_reporting (E_ERROR | E_WARNING | E_PARSE);
 
+               pg_query("BEGIN");
        
                if ($rss) {
 
                                                $last_read_qpart = 'last_read = null,';
                                        }
 
-                                       if ($orig_timestamp < $entry_timestamp) {
-                                               $last_read_qpart = 'last_read = null,';
-                                       }
+//                                     if ($orig_timestamp < $entry_timestamp) {
+//                                             $last_read_qpart = 'last_read = null,';
+//                                     }
 
                                        $entry_content = pg_escape_string($entry_content);
                                        $entry_title = pg_escape_string($entry_title);
 
                }
 
+               pg_query("COMMIT");
+
        }