Skip to content

Commit 2e7c98e

Browse files
committed
bubbled bolt flag to correct driver
1 parent 98f296a commit 2e7c98e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function run(string $statement, iterable $parameters = [])
119119
public function runStatement(Statement $statement)
120120
{
121121
$extra = ['db' => $this->database, 'tx_timeout' => (int) ($this->tsxConfig->getTimeout() * 1000)];
122-
$parameters = ParameterHelper::formatParameters($statement->getParameters());
122+
$parameters = ParameterHelper::formatParameters($statement->getParameters(), true);
123123
$start = microtime(true);
124124

125125
try {

src/ParameterHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static function filledIterableToArray($value): ?array
168168
*
169169
* @return CypherMap<iterable|scalar|stdClass|null>
170170
*/
171-
public static function formatParameters(iterable $parameters): CypherMap
171+
public static function formatParameters(iterable $parameters, bool $boltDriver = false): CypherMap
172172
{
173173
/** @var array<string, iterable|scalar|stdClass|null> $tbr */
174174
$tbr = [];
@@ -177,7 +177,7 @@ public static function formatParameters(iterable $parameters): CypherMap
177177
$msg = 'The parameters must have an integer or string as key values, '.gettype($key).' received.';
178178
throw new InvalidArgumentException($msg);
179179
}
180-
$tbr[(string) $key] = self::asParameter($value);
180+
$tbr[(string) $key] = self::asParameter($value, $boltDriver);
181181
}
182182

183183
return new CypherMap($tbr);

0 commit comments

Comments
 (0)