Set a few queries to buffered due to intermediate queries during fetching
authorDan
Fri, 29 May 2009 16:38:51 -0400
changeset 1013 8626bb38410f
parent 1012 d966be8d79a3
child 1014 930c1fdd3e9f
Set a few queries to buffered due to intermediate queries during fetching
plugins/admin/PageEditor.php
plugins/admin/SecurityLog.php
--- a/plugins/admin/PageEditor.php	Fri May 29 16:38:14 2009 -0400
+++ b/plugins/admin/PageEditor.php	Fri May 29 16:38:51 2009 -0400
@@ -151,7 +151,7 @@
     
     $pg_start = ( isset($_GET['offset']) ) ? intval($_GET['offset']) : 0;
     
-    $q = $db->sql_unbuffered_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset, \'edit\' AS mode FROM ' . table_prefix . 'pages ORDER BY name ASC;');
+    $q = $db->sql_query('SELECT urlname, name, namespace, ' . $num_pages . ' AS num_pages, ' . $pg_start . ' AS offset, \'edit\' AS mode FROM ' . table_prefix . 'pages ORDER BY name ASC;');
     if ( !$q )
       $db->_die('PageManager doing main select query for page list');
     
--- a/plugins/admin/SecurityLog.php	Fri May 29 16:38:14 2009 -0400
+++ b/plugins/admin/SecurityLog.php	Fri May 29 16:38:51 2009 -0400
@@ -39,7 +39,7 @@
   $row = $db->fetchrow();
   $db->free_result();
   $count = intval($row['num']);
-  $q = $db->sql_unbuffered_query('SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;');
+  $q = $db->sql_query('SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;');
   if ( !$q )
     $db->_die();