From 84c89a83b886c0f041b46dbf825497be2bd33040 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Mon, 5 Jan 2026 12:04:02 +0100 Subject: [PATCH] fix: disable prepared statements for PgBouncer compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add PDO::ATTR_EMULATE_PREPARES option to prevent "cached plan must not change result type" errors during rolling deployments with PgBouncer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- config/database.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/database.php b/config/database.php index a40987de8..cd27454ab 100644 --- a/config/database.php +++ b/config/database.php @@ -48,6 +48,9 @@ 'prefix_indexes' => true, 'search_path' => 'public', 'sslmode' => 'prefer', + 'options' => [ + PDO::ATTR_EMULATE_PREPARES => true, + ], ], 'testing' => [