aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/tools.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-25 18:37:46 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-25 18:37:46 +0200
commitb2044884ffab5e32fa1870ec68fe956a7cb05e1e (patch)
tree6802f9adf4de30366cc920a55a05ff1de25382fd /phpBB/phpbb/db/tools.php
parent95ab4b3e931521ce3c56068478311f0c04f713cc (diff)
downloadforums-b2044884ffab5e32fa1870ec68fe956a7cb05e1e.tar
forums-b2044884ffab5e32fa1870ec68fe956a7cb05e1e.tar.gz
forums-b2044884ffab5e32fa1870ec68fe956a7cb05e1e.tar.bz2
forums-b2044884ffab5e32fa1870ec68fe956a7cb05e1e.tar.xz
forums-b2044884ffab5e32fa1870ec68fe956a7cb05e1e.zip
[ticket/12448] Fix null columns for postgres
PHPBB3-12448
Diffstat (limited to 'phpBB/phpbb/db/tools.php')
-rw-r--r--phpBB/phpbb/db/tools.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index 874fe4dc11..54075b464c 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -1572,6 +1572,12 @@ class tools
$return_array['null'] = 'NOT NULL';
$sql .= 'NOT NULL ';
}
+ else
+ {
+ $default_val = "'" . $column_data[1] . "'";
+ $return_array['null'] = 'NULL';
+ $sql .= 'NULL ';
+ }
$return_array['default'] = $default_val;