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 51d270e commit 6788d0fCopy full SHA for 6788d0f
src/Network/Bolt/BoltSession.php
@@ -92,7 +92,8 @@ public function openTransaction(iterable $statements = null): TransactionInterfa
92
$sock = new StreamSocket($this->parsedUrl['host'], $this->parsedUrl['port'] ?? self::DEFAULT_TCP_PORT);
93
$bolt = new Bolt($sock);
94
$bolt->init($userAgent, $this->parsedUrl['user'], $this->parsedUrl['pass']);
95
- if (!$bolt->begin()) {
+ $extra = ['db' => $this->injections->database()];
96
+ if (!$bolt->begin($extra)) {
97
throw new Neo4jException(new Vector([new Neo4jError('', 'Cannot open new transaction')]));
98
}
99
} catch (Exception $e) {
0 commit comments