aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-08-25 19:11:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-08-25 19:11:27 -0400
commit7c0c4d07e777957a5fad54e81b4f42f420031060 (patch)
tree773e24b001527d437077dbc64d167baf7eb92dcc /src/tutorial/basics.source
parentb8c91352a2e168e1c24cc33862a0d95f13fd0957 (diff)
downloadpostgresql-7c0c4d07e777957a5fad54e81b4f42f420031060.tar.gz
postgresql-7c0c4d07e777957a5fad54e81b4f42f420031060.zip
Docs: be explicit about datatype matching for lead/lag functions.
The default argument, if given, has to be of exactly the same datatype as the first argument; but this was not stated in so many words, and the error message you get about it might not lead your thought in the right direction. Per bug #13587 from Robert McGehee. A quick scan says that these are the only two built-in functions with two anyelement arguments and no other polymorphic arguments. There are plenty of cases of, eg, anyarray and anyelement, but those seem less likely to confuse. For instance this doesn't seem terribly hard to figure out: "function array_remove(integer[], numeric) does not exist". So I've contented myself with fixing these two cases.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions