Merge pull request #48391 from nextcloud/backport/48361/stable30

This commit is contained in:
Kate 2024-09-26 17:04:01 +02:00 committed by GitHub
commit 673d85bbeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {