From: Andrew Dolgov Date: Tue, 23 Aug 2005 11:17:09 +0000 (+0100) Subject: headline update uses transactions once again X-Git-Tag: 20050823-1~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f48ba3c9e4c36e46a4769042876014e8f91eabb5;p=tt-rss.git headline update uses transactions once again --- diff --git a/functions.php b/functions.php index f97e958d..355bc1a9 100644 --- a/functions.php +++ b/functions.php @@ -31,6 +31,7 @@ $rss = fetch_rss($feed_url); error_reporting (E_ERROR | E_WARNING | E_PARSE); + pg_query("BEGIN"); if ($rss) { @@ -146,9 +147,9 @@ $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); @@ -176,6 +177,8 @@ } + pg_query("COMMIT"); + }