mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Merge pull request #23921 from nextcloud/techdebt/oci/fix-casting-to-integer
Fix casting to integer on Oracle
This commit is contained in:
commit
3f4fb9dc89
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user