Skip to content

Commit 3afcdb4

Browse files
committed
Disable prepared statements for pooler compatibility
1 parent 5e807dd commit 3afcdb4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/toolkit/src/db/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function createDatabase(url?: string): DatabaseConnection {
3737
max: 1, // Single connection for CLI usage
3838
idle_timeout: 20, // Close idle connections after 20 seconds
3939
connect_timeout: 10, // Connection timeout in seconds
40+
prepare: false, // Required for Neon pooler / PgBouncer compatibility
4041
onnotice: () => {
4142
// Suppress notices in CLI
4243
},

0 commit comments

Comments
 (0)