aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 3a24c5db1c..28a5ab9983 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2824,6 +2824,14 @@ function get_database_size()
$database_size = $row['size'];
}
break;
+
+ case 'oracle':
+ $sql = 'SELECT SUM(bytes) as dbsize
+ FROM user_segments';
+ $result = $db->sql_query($sql);
+ $database_size = ($row = $db->sql_fetchrow($result)) ? $row['dbsize'] : false;
+ $db->sql_freeresult($result);
+ break;
}
if ($database_size !== false)