mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Avoid select with no FROM clause for Oracle in tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
efebbacca4
commit
bfd09a0669
1 changed files with 4 additions and 0 deletions
|
|
@ -352,6 +352,8 @@ class FunctionBuilderTest extends TestCase {
|
|||
$query = $this->connection->getQueryBuilder();
|
||||
|
||||
$query->select($query->func()->octetLength($query->createNamedParameter($str, IQueryBuilder::PARAM_STR)));
|
||||
$query->from('appconfig')
|
||||
->setMaxResults(1);
|
||||
|
||||
$result = $query->execute();
|
||||
$column = $result->fetchOne();
|
||||
|
|
@ -375,6 +377,8 @@ class FunctionBuilderTest extends TestCase {
|
|||
$query = $this->connection->getQueryBuilder();
|
||||
|
||||
$query->select($query->func()->charLength($query->createNamedParameter($str, IQueryBuilder::PARAM_STR)));
|
||||
$query->from('appconfig')
|
||||
->setMaxResults(1);
|
||||
|
||||
$result = $query->execute();
|
||||
$column = $result->fetchOne();
|
||||
|
|
|
|||
Loading…
Reference in a new issue