who know enough to run explain can add it to thier queries. Per discussions this summer on list.
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.314 2007/11/23 17:58:47 xzilla Exp $
+ * $Id: Postgres.php,v 1.315 2007/11/30 06:04:43 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
function hasPrepare() { return false; }
function hasProcesses() { return false; }
function hasVariables() { return false; }
- function hasFullExplain() { return false; }
function hasStatsCollector() { return false; }
function hasAlterColumnType() { return false; }
function hasUserSessionDefaults() { return false; }
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres73.php,v 1.178 2007/11/21 19:10:40 ioguix Exp $
+ * $Id: Postgres73.php,v 1.179 2007/11/30 06:04:43 xzilla Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
function hasPrepare() { return true; }
function hasUserSessionDefaults() { return true; }
function hasVariables() { return true; }
- function hasFullExplain() { return true; }
// function hasForeignKeysInfo() { return true; }
function hasConstraintsInfo() { return true; }
function hasViewColumnRename() { return true; }
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.103 2007/11/29 23:23:56 ioguix Exp $
+ * $Id: database.php,v 1.104 2007/11/30 06:04:43 xzilla Exp $
*/
// Include application functions
echo "<p><input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " /><label for=\"paginate\">{$lang['strpaginate']}</label></p>\n";
echo "<p><input type=\"submit\" value=\"{$lang['strexecute']}\" />\n";
- if ($data->hasFullExplain()) {
- echo "<input type=\"submit\" name=\"explain\" value=\"{$lang['strexplain']}\" />\n";
- echo "<input type=\"submit\" name=\"explain_analyze\" value=\"{$lang['strexplainanalyze']}\" />\n";
- }
echo $misc->form;
echo "<input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";
echo "</form>\n";
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.39 2007/11/29 23:23:56 ioguix Exp $
+ * $Id: sql.php,v 1.40 2007/11/30 06:04:43 xzilla Exp $
*/
// Prevent timeouts on large exports (non-safe mode only)
}
}
}
-
- // Determine explain version of SQL
- if ($data->hasFullExplain() && isset($_POST['explain']) && isset($_POST['query'])) {
- $_POST['query'] = $data->getExplainSQL($_POST['query'], false);
- $_REQUEST['query'] = $_POST['query'];
- }
- elseif ($data->hasFullExplain() && isset($_POST['explain_analyze']) && isset($_POST['query'])) {
- $_POST['query'] = $data->getExplainSQL($_POST['query'], true);
- $_REQUEST['query'] = $_POST['query'];
- }
+
// Pagination maybe set by a get link that has it as FALSE,
// if that's the case, unset the variable.
/**
* Alternative SQL editing window
*
- * $Id: sqledit.php,v 1.36 2007/11/29 23:23:56 ioguix Exp $
+ * $Id: sqledit.php,v 1.37 2007/11/30 06:04:43 xzilla Exp $
*/
// Include application functions
echo "<label for=\"paginate\"><input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " /> {$lang['strpaginate']}</label>\n";
echo "<p><input type=\"submit\" value=\"{$lang['strexecute']}\" />\n";
- if ($data->hasFullExplain()) {
- echo "<input type=\"submit\" name=\"explain\" value=\"{$lang['strexplain']}\" />\n";
- echo "<input type=\"submit\" name=\"explain_analyze\" value=\"{$lang['strexplainanalyze']}\" />\n";
- }
echo "<input type=\"reset\" value=\"{$lang['strreset']}\" /></p>\n";
echo "</form>\n";