# HG changeset patch # User Dan # Date 1215417738 14400 # Node ID 219a0133622eb639322d8069fe7eefd0989d5273 # Parent 8dc58f08a06622aafd61ce576d7bc2fcf638e2a7 Made planet's main select query fully buffered because NuggiePostbit::paginate_handler requires fetch_page_acl which uses the DBAL diff -r 8dc58f08a066 -r 219a0133622e plugins/nuggie/planet.php --- a/plugins/nuggie/planet.php Mon Jul 07 04:01:39 2008 -0400 +++ b/plugins/nuggie/planet.php Mon Jul 07 04:02:18 2008 -0400 @@ -105,6 +105,7 @@ $db->_die(); $count = $db->numrows(); + $db->free_result($sql); // pass 2: production run @@ -113,7 +114,7 @@ $sql = str_replace('', "LIMIT $offset, 10", $sql); // yea. that was one query. - $q = $db->sql_unbuffered_query($sql); + $q = $db->sql_query($sql); if ( !$q ) $db->_die();