Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid select with no FROM clause for Oracle in tests
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Dec 19, 2022
commit 3a61963980e114e5ed130dd17e8c5308d684d087
4 changes: 4 additions & 0 deletions tests/lib/DB/QueryBuilder/FunctionBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public function testOctetLength(string $str, int $bytes) {
$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();
Expand All @@ -184,6 +186,8 @@ public function testCharLength(string $str, int $bytes) {
$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();
Expand Down