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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user