You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Bolt/BoltConnection.php
-16Lines changed: 0 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -201,10 +201,6 @@ public function begin(?string $database, ?float $timeout, BookmarkHolder $holder
201
201
*/
202
202
publicfunctiondiscard(?int$qid): void
203
203
{
204
-
if (!in_array($this->protocol()->serverState, [ServerState::STREAMING, ServerState::TX_STREAMING], true)) {
205
-
thrownewNeo4jException([Neo4jError::fromMessageAndCode('Neo.ClientError.Request.Invalid', 'Message \'DISCARD\' cannot be handled by a session which isn\'t in the STREAMING|TX_STREAMING state.')]);
206
-
}
207
-
208
204
$extra = $this->buildResultExtra(null, $qid);
209
205
$response = $this->protocol()
210
206
->discard($extra)
@@ -221,10 +217,6 @@ public function discard(?int $qid): void
if (!in_array($this->protocol()->serverState, [ServerState::READY, ServerState::TX_READY, ServerState::TX_STREAMING], true)) {
225
-
thrownewNeo4jException([Neo4jError::fromMessageAndCode('Neo.ClientError.Request.Invalid', 'Message \'RUN\' cannot be handled by a session which isn\'t in the READY|TX_READY|TX_STREAMING state.')]);
@@ -243,10 +235,6 @@ public function commit(): void
243
235
{
244
236
$this->consumeResults();
245
237
246
-
if ($this->protocol()->serverState !== ServerState::TX_READY) {
247
-
thrownewNeo4jException([Neo4jError::fromMessageAndCode('Neo.ClientError.Request.Invalid', 'Message \'COMMIT\' cannot be handled by a session which isn\'t in the TX_READY state.')]);
248
-
}
249
-
250
238
$response = $this->protocol()
251
239
->commit()
252
240
->getResponse();
@@ -286,10 +274,6 @@ public function protocol(): V4_4|V5|V5_3|V5_4
if (!in_array($this->protocol()->serverState, [ServerState::STREAMING, ServerState::TX_STREAMING], true)) {
290
-
thrownewNeo4jException([Neo4jError::fromMessageAndCode('Neo.ClientError.Request.Invalid', 'Message \'PULL\' cannot be handled by a session which isn\'t in the STREAMING|TX_STREAMING state.')]);
0 commit comments