Skip to content

Commit ebd115f

Browse files
committed
wip
1 parent ae05e49 commit ebd115f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Illuminate/Database/Connectors/PostgresConnector.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,8 @@ protected function quoteSearchPath($searchPath)
180180
*/
181181
protected function configureSynchronousCommit($connection, array $config)
182182
{
183-
if (! isset($config['synchronous_commit'])) {
184-
return;
183+
if (isset($config['synchronous_commit'])) {
184+
$connection->prepare("set synchronous_commit to '{$config['synchronous_commit']}'")->execute();
185185
}
186-
187-
$connection->prepare("set synchronous_commit to '{$config['synchronous_commit']}'")->execute();
188186
}
189187
}

0 commit comments

Comments
 (0)