mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Fix casting to integer on Oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
@@ -170,6 +170,10 @@ class OCIExpressionBuilder extends ExpressionBuilder {
|
||||
$column = $this->helper->quoteColumnName($column);
|
||||
return new QueryFunction('to_char(' . $column . ')');
|
||||
}
|
||||
if ($type === IQueryBuilder::PARAM_INT) {
|
||||
$column = $this->helper->quoteColumnName($column);
|
||||
return new QueryFunction('to_number(to_char(' . $column . '))');
|
||||
}
|
||||
|
||||
return parent::castColumn($column, $type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user