mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Turns out that Mazurkiewicz's gripe about 'function inheritance' is
actually a type-coercion problem. If you have a function defined on class A, and class B inherits from A, then the function ought to work on class B as well --- but coerce_type didn't know that. Now it does.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: parse_func.h,v 1.22 2000/01/26 05:58:27 momjian Exp $
|
||||
* $Id: parse_func.h,v 1.23 2000/03/16 06:35:06 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -47,6 +47,8 @@ extern Node *ParseFuncOrColumn(ParseState *pstate,
|
||||
|
||||
extern List *setup_base_tlist(Oid typeid);
|
||||
|
||||
extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId);
|
||||
|
||||
extern void func_error(char *caller, char *funcname,
|
||||
int nargs, Oid *argtypes, char *msg);
|
||||
|
||||
|
Reference in New Issue
Block a user