diff --git a/phpgwapi/inc/class.schema_proc_pgsql.inc.php b/phpgwapi/inc/class.schema_proc_pgsql.inc.php index 259bd6f495..0f83154b60 100644 --- a/phpgwapi/inc/class.schema_proc_pgsql.inc.php +++ b/phpgwapi/inc/class.schema_proc_pgsql.inc.php @@ -410,7 +410,14 @@ } else { - $sSQL .= 'null'; + if(isset($arraydef['nullable']) && $arraydef['nullable']) + { + $sSQL .= 'null'; + } + else + { + $sSQL .= "''"; + } } $i++; }