Skip to content
Snippets Groups Projects
Commit aa9e3886 authored by Volodymyr Sevostianov's avatar Volodymyr Sevostianov
Browse files

Merge remote-tracking branch 'origin/MAGETWO-43112' into BUGS

parents 6aca3072 04c2f627
Branches
No related merge requests found
......@@ -45,7 +45,7 @@ class ConcatExpression extends \Zend_Db_Expr
/**
* Returns SQL expression
* TRIM(CONCAT_WS(separator, IFNULL(str1,''), IFNULL(str2,''), ...))
* TRIM(CONCAT_WS(separator, IF(str1 <> '', str1, NULL), IF(str2 <> '', str2, NULL) ...))
*
* @return string
*/
......@@ -61,7 +61,7 @@ class ConcatExpression extends \Zend_Db_Expr
. (isset($part['columnName']) ? $part['columnName'] : $key)
);
}
$columns[] = $this->adapter->getIfNullSql($column, "''");
$columns[] = $this->adapter->getCheckSql($column . " <> ''", $column, 'NULL');
}
return sprintf(
'TRIM(%s)',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment