aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-06-07 05:58:45 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-06-07 05:58:45 +0000
commitdd9c236e6a47fb93d2f39f746f2bac5efc62066d (patch)
treeda04db2d671b6c83f434b8097d99e1ab23e53eea /phpBB/includes/functions_admin.php
parent5e78e5ad95fb8608d693f8f6b5ac075cbe072e07 (diff)
downloadforums-dd9c236e6a47fb93d2f39f746f2bac5efc62066d.tar
forums-dd9c236e6a47fb93d2f39f746f2bac5efc62066d.tar.gz
forums-dd9c236e6a47fb93d2f39f746f2bac5efc62066d.tar.bz2
forums-dd9c236e6a47fb93d2f39f746f2bac5efc62066d.tar.xz
forums-dd9c236e6a47fb93d2f39f746f2bac5efc62066d.zip
- Oracle, woe is you... I will say this much, this fixes Oracle's handling of empty strings... We also fix custom profiles and now provide database size for Oracle...
git-svn-id: file:///svn/phpbb/trunk@7721 89ea8834-ac86-4346-8a33-228a782c2dd0
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)