forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4f29ce
committed
Improve documentation about array concat operator vs. underlying functions.
The documentation implied that there was seldom any reason to use thearray_append, array_prepend, and array_cat functions directly. But that'snot really true, because they can help make it clear which case is meant,which the || operator can't do since it's overloaded to represent all threecases. Add some discussion and examples illustrating the potentiallyconfusing behavior that can ensue if the parser misinterprets what wasmeant.Per a complaint from Michael Herold. Back-patch to 9.2, which is where ||started to behave this way.1 parent45811be commite4f29ce
1 file changed
+41
-6
lines changedLines changed: 41 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 |
| - | |
| 349 | + | |
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
| |||
494 | 494 |
| |
495 | 495 |
| |
496 | 496 |
| |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
| 497 | + | |
502 | 498 |
| |
503 | 499 |
| |
504 | 500 |
| |
| |||
531 | 527 |
| |
532 | 528 |
| |
533 | 529 |
| |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
534 | 569 |
| |
535 | 570 |
| |
536 | 571 |
| |
|
0 commit comments
Comments
(0)