Skip to content

Commit

Permalink
Allow to set PDO::PGSQL_ATTR_DISABLE_PREPARES via environment variable
Browse files Browse the repository at this point in the history
…#4558 from RisingOpsNinja/master

Allow to set PDO::PGSQL_ATTR_DISABLE_PREPARES via environment variable
  • Loading branch information
freescout-help-desk authored Feb 7, 2025
2 parents ee361fd + 79bc595 commit 35b6283
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
'prefix' => env('DB_TABLE_PREFIX', ''),
'schema' => 'public',
'sslmode' => env('DB_PGSQL_SSLMODE', 'prefer'),
'options' => extension_loaded('pdo_pgsql') ? array_filter([
PDO::PGSQL_ATTR_DISABLE_PREPARES => env('DB_PGSQL_ATTR_DISABLE_PREPARES'),
]) : [],
],

'sqlsrv' => [
Expand Down

0 comments on commit 35b6283

Please sign in to comment.