Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Gallay committed Oct 20, 2014
1 parent 3515b41 commit e93f61d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Database/Dialect/PostgresDialectTrait.php
Expand Up @@ -104,10 +104,11 @@ protected function _transformFunctionExpression(FunctionExpression $expression)
->name('ABS')
->type('-')
->iterateParts(function ($p) {
if( is_string($p) )
if( is_string($p) ) {
$p = [ 'value' => [$p => 'literal'], 'type' => null ];
else
} else {
$p['value'] = [$p['value']];
}

return new FunctionExpression('DATE', $p['value'], [$p['type']]);
});
Expand Down

0 comments on commit e93f61d

Please sign in to comment.