- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7c0c4d0
committed
Docs: be explicit about datatype matching for lead/lag functions.
The default argument, if given, has to be of exactly the same datatypeas the first argument; but this was not stated in so many words, andthe error message you get about it might not lead your thought in theright direction. Per bug #13587 from Robert McGehee.A quick scan says that these are the only two built-in functions with twoanyelement arguments and no other polymorphic arguments. There are plentyof cases of, eg, anyarray and anyelement, but those seem less likely toconfuse. For instance this doesn't seem terribly hard to figure out:"function array_remove(integer[], numeric) does not exist". So I'vecontented myself with fixing these two cases.1 parentb8c9135 commit7c0c4d0
1 file changed
+10
-6
lines changedLines changed: 10 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13606 | 13606 |
| |
13607 | 13607 |
| |
13608 | 13608 |
| |
13609 |
| - | |
| 13609 | + | |
13610 | 13610 |
| |
13611 |
| - | |
| 13611 | + | |
13612 | 13612 |
| |
13613 | 13613 |
| |
13614 | 13614 |
| |
| |||
13618 | 13618 |
| |
13619 | 13619 |
| |
13620 | 13620 |
| |
13621 |
| - | |
| 13621 | + | |
| 13622 | + | |
| 13623 | + | |
13622 | 13624 |
| |
13623 | 13625 |
| |
13624 | 13626 |
| |
| |||
13633 | 13635 |
| |
13634 | 13636 |
| |
13635 | 13637 |
| |
13636 |
| - | |
| 13638 | + | |
13637 | 13639 |
| |
13638 |
| - | |
| 13640 | + | |
13639 | 13641 |
| |
13640 | 13642 |
| |
13641 | 13643 |
| |
| |||
13645 | 13647 |
| |
13646 | 13648 |
| |
13647 | 13649 |
| |
13648 |
| - | |
| 13650 | + | |
| 13651 | + | |
| 13652 | + | |
13649 | 13653 |
| |
13650 | 13654 |
| |
13651 | 13655 |
| |
|
0 commit comments
Comments
(0)