1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

[ticket/17475] Fix MSSQL arithmetic overflow error on counting attachments size

PHPBB-17475
This commit is contained in:
rxu
2025-03-10 21:24:15 +07:00
parent 64dd8b668e
commit 14a6322b4f
4 changed files with 4 additions and 4 deletions

View File

@@ -2071,7 +2071,7 @@ class acp_forums
$config->set('num_files', (int) $row['stat'], false);
$sql = 'SELECT SUM(filesize) as stat
$sql = 'SELECT SUM(' . $db->cast_expr_to_bigint('filesize') . ') as stat
FROM ' . ATTACHMENTS_TABLE;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);