Skip to content
Permalink
Browse files

Casting expression as it errors out in postgres

  • Loading branch information...
lorenzo committed Jul 24, 2014
1 parent f15a6f5 commit d196633b53cf39fc3413f67d791cc3bb88736412
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Database/Expression/Comparison.php
@@ -168,7 +168,7 @@ protected function _flattenValue($value, $generator, $type = null) {
}
if (empty($parts)) {
return 'SELECT NULL';
return "SELECT CAST(NULL as $type)";
}
return implode(',', $parts);

0 comments on commit d196633

Please sign in to comment.
You can’t perform that action at this time.