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:
Joas Schilling 2020-11-06 13:32:14 +01:00
parent 2b0b57d304
commit 990bb07002
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class OCIExpressionBuilder extends ExpressionBuilder {
$column = $this->helper->quoteColumnName($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);
return new QueryFunction('to_number(to_char(' . $column . '))');
}