Skip to content

Commit 95f55f4

Browse files
committed
Fix next result test
1 parent a267853 commit 95f55f4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/LinkTest.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,12 @@ public function testNextResultBeforeConsumption()
110110

111111
$result = $db->query("SELECT a FROM main; SELECT b FROM main;");
112112

113-
$this->expectException(\Error::class);
114-
$this->expectExceptionMessage('Consume entire current result before requesting next result');
113+
$result = $result->getNextResult();
115114

116-
$result->getNextResult();
115+
$columns = $result->getColumnDefinitions();
116+
self::assertCount(1, $columns);
117+
$column = $columns[0];
118+
self::assertSame('b', $column->name);
117119
}
118120

119121
public function testQueryWithUnconsumedTupleResult(): void

0 commit comments

Comments
 (0)