From ac4878a06009c34bf26b12f358fc45bef13829bf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 17 Jan 2000 02:04:16 +0000 Subject: Pass atttypmod to CoerceTargetExpr, so that it can pass it on to coerce_type, so that the right things happen when coercing a previously- unknown constant to a destination data type. --- src/include/parser/parse_target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/parser') diff --git a/src/include/parser/parse_target.h b/src/include/parser/parse_target.h index 08cf389d72e..022abd58520 100644 --- a/src/include/parser/parse_target.h +++ b/src/include/parser/parse_target.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_target.h,v 1.16 1999/11/01 05:06:20 tgl Exp $ + * $Id: parse_target.h,v 1.17 2000/01/17 02:04:15 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,7 +23,7 @@ extern void updateTargetListEntry(ParseState *pstate, TargetEntry *tle, char *colname, int attrno, List *indirection); extern Node *CoerceTargetExpr(ParseState *pstate, Node *expr, - Oid type_id, Oid attrtype); + Oid type_id, Oid attrtype, int32 attrtypmod); extern List *checkInsertTargets(ParseState *pstate, List *cols, List **attrnos); -- cgit v1.2.3