1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 20:40:24 +02:00

- 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
This commit is contained in:
David M
2007-06-07 05:58:45 +00:00
parent 5e78e5ad95
commit dd9c236e6a
3 changed files with 119 additions and 5 deletions

View File

@@ -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)