Fixed null values handling for PostgresSQL arrays

Fixes #15804
This commit is contained in:
SilverFire - Dmitry Naumenko
2018-03-03 18:54:33 +02:00
parent 233eeb52d7
commit d5d4b8b0f5
6 changed files with 36 additions and 3 deletions

View File

@@ -32,6 +32,9 @@ class ArrayExpressionBuilder implements ExpressionBuilderInterface
public function build(ExpressionInterface $expression, array &$params = [])
{
$value = $expression->getValue();
if ($value === null) {
return 'NULL';
}
if ($value instanceof Query) {
list ($sql, $params) = $this->queryBuilder->build($value, $params);