aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-07-18 11:52:12 -0400
committerAndrew Dunstan <andrew@dunslane.net>2013-07-18 11:52:12 -0400
commitd26888bc4d1e539a82f21382b0000fe5bbf889d9 (patch)
tree45971c200f11e8b55af421cdadf012b4071f8ce1 /src/include
parent405a468b02dd80a069b95c4eb9838cb6a562eddd (diff)
downloadpostgresql-d26888bc4d1e539a82f21382b0000fe5bbf889d9.tar.gz
postgresql-d26888bc4d1e539a82f21382b0000fe5bbf889d9.zip
Move checking an explicit VARIADIC "any" argument into the parser.
This is more efficient and simpler . It does mean that an untyped NULL can no longer be used in such cases, which should be mentioned in Release Notes, but doesn't seem a terrible loss. The workaround is to cast the NULL to some array type. Pavel Stehule, reviewed by Jeevan Chalke.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/parser/parse_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h
index d63cb95b347..d33eef3482c 100644
--- a/src/include/parser/parse_func.h
+++ b/src/include/parser/parse_func.h
@@ -52,8 +52,8 @@ extern FuncDetailCode func_get_detail(List *funcname,
int nargs, Oid *argtypes,
bool expand_variadic, bool expand_defaults,
Oid *funcid, Oid *rettype,
- bool *retset, int *nvargs, Oid **true_typeids,
- List **argdefaults);
+ bool *retset, int *nvargs, Oid *vatype,
+ Oid **true_typeids, List **argdefaults);
extern int func_match_argtypes(int nargs,
Oid *input_typeids,