8000 backport emulate prepares · laravel/framework@8046e4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8046e4e

Browse files
committed
backport emulate prepares
1 parent c237907 commit 8046e4e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Illuminate/Foundation/Cloud.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Foundation\Bootstrap\LoadConfiguration;
88
use Monolog\Formatter\JsonFormatter;
99
use Monolog\Handler\SocketHandler;
10+
use PDO;
1011

1112
class Cloud
1213
{
@@ -82,6 +83,14 @@ public static function configureUnpooledPostgresConnection(Application $app): vo
8283
'host' => str_replace('-pooler', '', $host),
8384
])
8485
);
86+
87+
$app['config']->set(
88+
'database.connections.pgsql.options',
89+
array_merge(
90+
$app['config']->get('database.connections.pgsql.options', []),
91+
[PDO::ATTR_EMULATE_PREPARES => true],
92+
),
93+
);
8594
}
8695
}
8796

0 commit comments

Comments
 (0)
0