Skip to content

Commit

Permalink
Merge branch 'master' into l11
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Mar 8, 2024
2 parents a12df5d + 4239820 commit b2294cb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ public function testOuterUnion()
$this->assertEquals([1, 2], $rows->pluck('id')->all());
}

public function testOuterUnionWithRecursionLimit()
{
if ($this->connection !== 'sqlsrv') {
$this->markTestSkipped();
}

$query = 'select 1 union all select number + 1 from numbers where number < 102';

$rows = DB::table('numbers')
->unionAll(DB::table('numbers'))
->withRecursiveExpression('numbers', $query, ['number'])
->recursionLimit(101)
->get();

$this->assertCount(204, $rows);
}

public function testInsertUsing()
{
$id = match ($this->connection) {
Expand Down

0 comments on commit b2294cb

Please sign in to comment.