diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-24 17:02:27 +0100 |
---|---|---|
committer | Vincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com> | 2022-03-24 20:35:02 +0000 |
commit | bfd09a0669ff4c87218fdeea33b0cd464692b805 (patch) | |
tree | 655f6f1e61e5f6312aab6fe0fec487a9df634f09 /tests | |
parent | efebbacca4d5a5045271eeecd209c8a0b4253598 (diff) | |
download | nextcloud-server-bfd09a0669ff4c87218fdeea33b0cd464692b805.tar.gz nextcloud-server-bfd09a0669ff4c87218fdeea33b0cd464692b805.zip |
Avoid select with no FROM clause for Oracle in tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/DB/QueryBuilder/FunctionBuilderTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php index 6b13051c2c1..08392b09d8d 100644 --- a/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php +++ b/tests/lib/DB/QueryBuilder/FunctionBuilderTest.php @@ -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(); |