Cast bool things to numbers as that is how they are stored in the database
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2b0b57d304
commit
990bb07002
|
@ -170,7 +170,7 @@ class OCIExpressionBuilder extends ExpressionBuilder {
|
||||||
$column = $this->helper->quoteColumnName($column);
|
$column = $this->helper->quoteColumnName($column);
|
||||||
return new QueryFunction('to_char(' . $column . ')');
|
return new QueryFunction('to_char(' . $column . ')');
|
||||||
}
|
}
|
||||||
if ($type === IQueryBuilder::PARAM_INT) {
|
if ($type === IQueryBuilder::PARAM_INT || $type === IQueryBuilder::PARAM_BOOL) {
|
||||||
$column = $this->helper->quoteColumnName($column);
|
$column = $this->helper->quoteColumnName($column);
|
||||||
return new QueryFunction('to_number(to_char(' . $column . '))');
|
return new QueryFunction('to_number(to_char(' . $column . '))');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue