Index: docs/CHANGELOG.html
===================================================================
--- docs/CHANGELOG.html (revision 9916)
+++ docs/CHANGELOG.html (working copy)
@@ -186,6 +186,7 @@
[Fix] Do not try to create thumbnails for images we cannot open properly. (Bug #48695)
[Fix] Apply locale-independent basename() to attachment filenames. New function added: utf8_basename(). (Bug #43335 - Patch by ocean=Yohsuke)
[Fix] Adjust build_url() to not prepend $phpbb_root_path if path returned from redirect() is an URL. This fixes redirect issues with some installations and bridges. (Bug #47535)
+ [Fix] Correctly extract column default value when exporting PostgreSQL tables. (Bug #48955)
[Change] Change the data format of the default file ACM to be more secure from tampering and have better performance.
[Change] Add index on log_time to the log table to prevent slowdown on boards with many log entries. (Bug #44665 - Patch by bantu)
[Change] Template engine now permits to a limited extent variable includes.
Index: includes/acp/acp_database.php
===================================================================
--- includes/acp/acp_database.php (revision 9916)
+++ includes/acp/acp_database.php (working copy)
@@ -1157,16 +1157,17 @@
AND (c.oid = d.adrelid)
AND d.adnum = " . $row['attnum'];
$def_res = $db->sql_query($sql_get_default);
+ $def_row = $db->sql_fetchrow($def_res);
+ $db->sql_freeresult($def_res);
- if (!$def_res)
+ if (empty($def_row))
{
unset($row['rowdefault']);
}
else
{
- $row['rowdefault'] = $db->sql_fetchfield('rowdefault', false, $def_res);
+ $row['rowdefault'] = $def_row['rowdefault'];
}
- $db->sql_freeresult($def_res);
if ($row['type'] == 'bpchar')
{