summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-07 20:42:16 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-07 20:42:24 +0200
commit4a36e0e4af8df6971be40f08c8ab0fd65c78fdd6 (patch)
treea938414d5cd00d743cca925b1c257c93564393ea /db
parent8bee2e6d5e64eeaede7a1f152f84696b8526e1f6 (diff)
quickfix release
Diffstat (limited to 'db')
-rw-r--r--db/itemmapper.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php
index 0eec5f2cb..eaf24dc49 100644
--- a/db/itemmapper.php
+++ b/db/itemmapper.php
@@ -257,9 +257,11 @@ class ItemMapper extends Mapper implements IMapper {
$params = array($status, $threshold);
$result = $this->execute($sql, $params);
+ /* FIXME: this is broken on posgres
while($row = $result->fetchRow()) {
- $limit = $row['size'] - $threshold;
+ $size = (int) $row['size'];
+ $limit = $size - $threshold;
if($limit > 0) {
$params = array($status, $row['feed_id']);
@@ -272,6 +274,7 @@ class ItemMapper extends Mapper implements IMapper {
$this->execute($sql, $params, $limit);
}
}
+ */
}