diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-24 22:09:00 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-24 22:09:00 +0000 |
commit | c3086c8f530e7b8319c37d1f0ffa64585eaaeaa9 (patch) | |
tree | db2a30daf3312e06cd0d58975aab91426f9316c1 /src/include | |
parent | 6b704bf50180e33021b90354994d232f531e70ae (diff) |
Function-call-style type coercions should be treated as explicit
coercions, not implicit ones. For example, 'select abstime(1035497293)'
should succeed because there is an explicit binary coercion from int4
to abstime.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/parser/parse_coerce.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index 61a63cafeb4..ecc61ea716a 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_coerce.h,v 1.47 2002/09/18 21:35:24 tgl Exp $ + * $Id: parse_coerce.h,v 1.48 2002/10/24 22:09:00 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -54,6 +54,9 @@ extern Oid select_common_type(List *typeids, const char *context); extern Node *coerce_to_common_type(Node *node, Oid targetTypeId, const char *context); +extern bool find_coercion_pathway(Oid targetTypeId, Oid sourceTypeId, + CoercionContext ccontext, + Oid *funcid); extern Oid find_typmod_coercion_function(Oid typeId, int *nargs); #endif /* PARSE_COERCE_H */ |