Index: branches/RC/core/units/admin/admin_events_handler.php
===================================================================
diff -u -r10749 -r10751
--- branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10749)
+++ branches/RC/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 10751)
@@ -1063,18 +1063,18 @@
if ($sql) {
$start = $this->getMoment();
$result = $this->Conn->Query($sql);
- $this->Application->SetVar('sql_time', $this->getMoment() - $start);
-
-
+ $this->Application->SetVar('sql_time', round($this->getMoment() - $start, 7));
+
+
if ($result)
{
if (is_array($result))
{
- $this->Application->SetVar('sql_has_rows', 1);
- $this->Application->SetVar('sql_rows', serialize($result));
- }
- }
-
+ $this->Application->SetVar('sql_has_rows', 1);
+ $this->Application->SetVar('sql_rows', serialize($result));
+ }
+ }
+
$check_sql = trim(strtolower($sql));
if (
(substr($check_sql, 0, 6) == 'insert')
@@ -1083,15 +1083,15 @@
|| (substr($check_sql, 0, 6) == 'delete')
) {
$this->Application->SetVar('sql_has_affected', 1);
- $this->Application->SetVar('sql_affected', $this->Conn->getAffectedRows());
+ $this->Application->SetVar('sql_affected', $this->Conn->getAffectedRows());
}
-
+
}
$this->Application->SetVar('query_status', 1);
$event->status = erFAIL;
}
-
- function getMoment()
+
+ function getMoment()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
Index: branches/RC/core/admin_templates/tools/sql_query.tpl
===================================================================
diff -u -r10749 -r10751
--- branches/RC/core/admin_templates/tools/sql_query.tpl (.../sql_query.tpl) (revision 10749)
+++ branches/RC/core/admin_templates/tools/sql_query.tpl (.../sql_query.tpl) (revision 10751)
@@ -16,7 +16,7 @@
}
) );
a_toolbar.AddButton( new ToolBarButton('cancel', '
+ |
![]() |
+
+ | + + |
+ - | + |
+ + |
- - |
- |