Commit ca6e42f
Support "ANY" with an array of values
This commit adds the ability to use "ANY(...Array)" to look up for a
value matching against an array.
For example:
dbz.Select("id").From("table").Where(ANY("id",[]int{1,2,3,4,5}))
We added that support in order to workaround a limitation of postgres of
maximum parameters in IN condition ("PostgreSQL only supports 65535 parameters").1 parent b7e9b6d commit ca6e42f
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
| |||
399 | 406 | | |
400 | 407 | | |
401 | 408 | | |
402 | | - | |
| 409 | + | |
| 410 | + | |
403 | 411 | | |
404 | 412 | | |
405 | 413 | | |
406 | 414 | | |
407 | 415 | | |
408 | | - | |
409 | 416 | | |
410 | 417 | | |
411 | 418 | | |
412 | | - | |
| 419 | + | |
413 | 420 | | |
414 | 421 | | |
415 | | - | |
416 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
417 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
418 | 431 | | |
419 | 432 | | |
420 | 433 | | |
| |||
0 commit comments