forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a9b042
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 parent9c39d7a commit0a9b042
1 file changed
+40
-5
lines changedLines changed: 40 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 |
| - | |
| 484 | + | |
489 | 485 |
| |
490 | 486 |
| |
491 | 487 |
| |
| |||
518 | 514 |
| |
519 | 515 |
| |
520 | 516 |
| |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 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 | + | |
521 | 556 |
| |
522 | 557 |
| |
523 | 558 |
| |
|
0 commit comments
Comments
(0)