We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae05e49 commit ebd115fCopy full SHA for ebd115f
src/Illuminate/Database/Connectors/PostgresConnector.php
@@ -180,10 +180,8 @@ protected function quoteSearchPath($searchPath)
180
*/
181
protected function configureSynchronousCommit($connection, array $config)
182
{
183
- if (! isset($config['synchronous_commit'])) {
184
- return;
+ if (isset($config['synchronous_commit'])) {
+ $connection->prepare("set synchronous_commit to '{$config['synchronous_commit']}'")->execute();
185
}
186
-
187
- $connection->prepare("set synchronous_commit to '{$config['synchronous_commit']}'")->execute();
188
189
0 commit comments