We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf836b2 commit 7254372Copy full SHA for 7254372
src/Bolt/BoltConnection.php
@@ -372,7 +372,11 @@ public function getUserAgent(): string
372
private function assertNoFailure(Response $response): void
373
{
374
if ($response->signature === Signature::FAILURE) {
375
- $this->protocol()->reset()->getResponse(); //what if the reset fails? what should be expected behaviour?
+ $resetResponse = $this->protocol()->reset()->getResponse();
376
+ $this->subscribedResults = [];
377
+ if ($resetResponse->signature === Signature::FAILURE) {
378
+ throw new Neo4jException([Neo4jError::fromBoltResponse($resetResponse), Neo4jError::fromBoltResponse($response)]);
379
+ }
380
throw Neo4jException::fromBoltResponse($response);
381
}
382
0 commit comments