Made planet's main select query fully buffered because NuggiePostbit::paginate_handler requires fetch_page_acl which uses the DBAL
authorDan
Mon, 07 Jul 2008 04:02:18 -0400
changeset 10 219a0133622e
parent 9 8dc58f08a066
child 11 059a5a8566fc
Made planet's main select query fully buffered because NuggiePostbit::paginate_handler requires fetch_page_acl which uses the DBAL
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>', "LIMIT $offset, 10", $sql);
   
   // yea. that was one query.
-  $q = $db->sql_unbuffered_query($sql);
+  $q = $db->sql_query($sql);
   if ( !$q )
     $db->_die();