Permalink
Browse files

accept array as parameter in getConcatExpression

  • Loading branch information...
1 parent 5388359 commit 1192a5e1b2e3ee7ae83d5bf529c1aadff73b94dd @broncha committed Feb 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php
@@ -543,7 +543,10 @@ public function getTrimExpression($str, $pos = self::TRIM_UNSPECIFIED, $char = f
public function getConcatExpression()
{
$args = func_get_args();
-
+
+ if(is_array($args[0])){
+ $args = $args[0];
+ }
return '(' . implode(' + ', $args) . ')';
}

0 comments on commit 1192a5e

Please sign in to comment.