diff options
| author | Peter Eisentraut | 2016-12-28 17:00:00 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-03-06 18:31:47 +0000 |
| commit | 2ca64c6f7105f97ce886bdbbd880f50225bf24ba (patch) | |
| tree | 711fe393b0a128f5a905fbdf1991fa6f54e837c4 /src/include/parser/parse_oper.h | |
| parent | 8b6d6cf853aab12f0dc2adba7c99c3e458662734 (diff) | |
Replace LookupFuncNameTypeNames() with LookupFuncWithArgs()
The old function took function name and function argument list as
separate arguments. Now that all function signatures are passed around
as ObjectWithArgs structs, this is no longer necessary and can be
replaced by a function that takes ObjectWithArgs directly. Similarly
for aggregates and operators.
Reviewed-by: Jim Nasby <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Diffstat (limited to 'src/include/parser/parse_oper.h')
| -rw-r--r-- | src/include/parser/parse_oper.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/parser/parse_oper.h b/src/include/parser/parse_oper.h index b8d46637bec..a8f75b5921e 100644 --- a/src/include/parser/parse_oper.h +++ b/src/include/parser/parse_oper.h @@ -15,6 +15,7 @@ #define PARSE_OPER_H #include "access/htup.h" +#include "nodes/parsenodes.h" #include "parser/parse_node.h" @@ -24,9 +25,7 @@ typedef HeapTuple Operator; extern Oid LookupOperName(ParseState *pstate, List *opername, Oid oprleft, Oid oprright, bool noError, int location); -extern Oid LookupOperNameTypeNames(ParseState *pstate, List *opername, - TypeName *oprleft, TypeName *oprright, - bool noError, int location); +extern Oid LookupOperWithArgs(ObjectWithArgs *oper, bool noError); /* Routines to find operators matching a name and given input types */ /* NB: the selected operator may require coercion of the input types! */ |
