Skip to content

Commit

Permalink
firebird
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Mar 7, 2024
1 parent 9c35b17 commit 20e77be
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,19 +110,15 @@ public function testRecursionLimit()

public function testOuterUnion()
{
$query = DB::table('u')
$rows = DB::table('u')
->where('id', 1)
->unionAll(
DB::table('u')
->where('id', 2)
)
->withExpression('u', DB::table('users'));

if ($this->connection !== 'firebird') {
$query->orderBy('id');
}

$rows = $query->get();
->withExpression('u', DB::table('users'))
->when($this->connection !== 'firebird', fn (BaseBuilder $query) => $query->orderBy('id'))
->get();

$this->assertEquals([1, 2], $rows->pluck('id')->all());
}
Expand Down

0 comments on commit 20e77be

Please sign in to comment.