headline update uses transactions once again
This commit is contained in:
parent
466001c4fa
commit
f48ba3c9e4
|
@ -31,6 +31,7 @@
|
||||||
$rss = fetch_rss($feed_url);
|
$rss = fetch_rss($feed_url);
|
||||||
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
error_reporting (E_ERROR | E_WARNING | E_PARSE);
|
||||||
|
|
||||||
|
pg_query("BEGIN");
|
||||||
|
|
||||||
if ($rss) {
|
if ($rss) {
|
||||||
|
|
||||||
|
@ -146,9 +147,9 @@
|
||||||
$last_read_qpart = 'last_read = null,';
|
$last_read_qpart = 'last_read = null,';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($orig_timestamp < $entry_timestamp) {
|
// if ($orig_timestamp < $entry_timestamp) {
|
||||||
$last_read_qpart = 'last_read = null,';
|
// $last_read_qpart = 'last_read = null,';
|
||||||
}
|
// }
|
||||||
|
|
||||||
$entry_content = pg_escape_string($entry_content);
|
$entry_content = pg_escape_string($entry_content);
|
||||||
$entry_title = pg_escape_string($entry_title);
|
$entry_title = pg_escape_string($entry_title);
|
||||||
|
@ -176,6 +177,8 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pg_query("COMMIT");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue