mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user