From 49528361f521b432da2cfafcb81cade17eb324d1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Jan 2000 00:14:49 +0000 Subject: Create a new parsetree node type, TypeCast, so that transformation of SQL cast constructs can be performed during expression transformation instead of during parsing. This allows constructs like x::numeric(9,2) and x::int2::float8 to behave as one would expect. --- src/include/parser/parse_coerce.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/include/parser') diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index 02a1eed11e7..06736c6dff9 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -2,11 +2,11 @@ * * parse_coerce.h * - * + * Routines for type coercion. * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_coerce.h,v 1.15 1999/07/16 17:07:36 momjian Exp $ + * $Id: parse_coerce.h,v 1.16 2000/01/17 00:14:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -125,6 +125,8 @@ extern CATEGORY TypeCategory(Oid type); extern bool can_coerce_type(int nargs, Oid *input_typeids, Oid *func_typeids); extern Node *coerce_type(ParseState *pstate, Node *node, Oid inputTypeId, - Oid targetTypeId, int32 atttypmod); + Oid targetTypeId, int32 atttypmod); +extern Node *coerce_type_typmod(ParseState *pstate, Node *node, + Oid targetTypeId, int32 atttypmod); #endif /* PARSE_COERCE_H */ -- cgit v1.2.3