Commit cafe88e
Pass arrays as single positional parameter for prepared-statement caching
Instead of expanding arrays into individual parameters (e.g. IN [$1, $2]),
pass the whole array as one parameter (e.g. IN $1). This keeps the query
string stable regardless of array length, enabling Couchbase to cache the
prepared statement for IN queries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c2cffd3 commit cafe88e
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments