Commit 0190b02
committed
fix(protect): disable prepared statements for pooled PG connections
The CI DATABASE_URL uses a connection pooler (Supabase PgBouncer in
transaction mode) which does not support server-side prepared statements.
The postgres.js driver caches statement names by SQL signature and skips
Parse on reuse, but PgBouncer may route the Bind to a different backend
that has no knowledge of the cached statement.
Pass prepare: false to the postgres client so each query uses the
unnamed statement protocol (Parse + Bind + Execute per query).1 parent 97f1bf7 commit 0190b02
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments