mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #48391 from nextcloud/backport/48361/stable30
This commit is contained in:
commit
673d85bbeb
1 changed files with 17 additions and 0 deletions
|
|
@ -206,6 +206,23 @@ class QueryBuilder implements IQueryBuilder {
|
|||
// }
|
||||
// }
|
||||
|
||||
$tooLongOutputColumns = [];
|
||||
foreach ($this->getOutputColumns() as $column) {
|
||||
if (strlen($column) > 30) {
|
||||
$tooLongOutputColumns[] = $column;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($tooLongOutputColumns)) {
|
||||
$exception = new QueryException('More than 30 characters for an output column name are not allowed on Oracle.');
|
||||
$this->logger->error($exception->getMessage(), [
|
||||
'query' => $this->getSQL(),
|
||||
'columns' => $tooLongOutputColumns,
|
||||
'app' => 'core',
|
||||
'exception' => $exception,
|
||||
]);
|
||||
}
|
||||
|
||||
$numberOfParameters = 0;
|
||||
$hasTooLargeArrayParameter = false;
|
||||
foreach ($this->getParameters() as $parameter) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue