Skip to content

Commit 6a5226c

Browse files
committed
improved handling multiple results at once with neo4j 3.5
1 parent 0c66e8b commit 6a5226c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bolt/BoltConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function discard(?int $qid): void
272272
*/
273273
public function run(string $text, array $parameters, ?string $database, ?float $timeout): array
274274
{
275-
if (!str_starts_with($this->serverState, 'TX_')) {
275+
if (!str_starts_with($this->serverState, 'TX_') || str_starts_with($this->getServerVersion(), '3')) {
276276
$this->consumeResults();
277277
}
278278

0 commit comments

Comments
 (0)