Permalink
Browse files

Add row count and table size for Oracle tables

  • Loading branch information...
helix84 authored and vrana committed May 10, 2012
1 parent 7f1afde commit a280179bd51fff4a3f6bee63e8970d36ac837be4
Showing with 2 additions and 2 deletions.
  1. +2 −2 adminer/drivers/oracle.inc.php
@@ -190,8 +190,8 @@ function count_tables($databases) {
function table_status($name = "") {
$return = array();
$search = q($name);
- foreach (get_rows('SELECT table_name "Name", \'table\' "Engine" FROM all_tables WHERE tablespace_name = ' . q(DB) . ($name != "" ? " AND table_name = $search" : "") . "
-UNION SELECT view_name, 'view' FROM user_views" . ($name != "" ? " WHERE view_name = $search" : "")
+ foreach (get_rows('SELECT table_name "Name", \'table\' "Engine", avg_row_len * num_rows "Data_length", num_rows "Rows" FROM all_tables WHERE tablespace_name = ' . q(DB) . ($name != "" ? " AND table_name = $search" : "") . "
+UNION SELECT view_name, 'view', 0, 0 FROM user_views" . ($name != "" ? " WHERE view_name = $search" : "")
) as $row) {
if ($name != "") {
return $row;

0 comments on commit a280179

Please sign in to comment.