1997-11-25 17:07:18 -05:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* parse_target.h
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
2002-06-20 16:29:54 -04:00
|
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1997-11-25 17:07:18 -05:00
|
|
|
*
|
2002-09-04 16:31:48 -04:00
|
|
|
* $Id: parse_target.h,v 1.26 2002/09/04 20:31:45 momjian Exp $
|
1997-11-25 17:07:18 -05:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef PARSE_TARGET_H
|
|
|
|
|
#define PARSE_TARGET_H
|
|
|
|
|
|
1999-07-15 19:04:24 -04:00
|
|
|
#include "parser/parse_node.h"
|
1997-11-25 17:07:18 -05:00
|
|
|
|
1997-11-25 20:14:33 -05:00
|
|
|
extern List *transformTargetList(ParseState *pstate, List *targetlist);
|
1999-07-18 20:26:20 -04:00
|
|
|
extern TargetEntry *transformTargetEntry(ParseState *pstate,
|
2000-04-12 13:17:23 -04:00
|
|
|
Node *node, Node *expr,
|
|
|
|
|
char *colname, bool resjunk);
|
1999-07-18 20:26:20 -04:00
|
|
|
extern void updateTargetListEntry(ParseState *pstate, TargetEntry *tle,
|
2000-04-12 13:17:23 -04:00
|
|
|
char *colname, int attrno,
|
|
|
|
|
List *indirection);
|
1998-09-01 00:40:42 -04:00
|
|
|
extern Node *CoerceTargetExpr(ParseState *pstate, Node *expr,
|
2002-09-04 16:31:48 -04:00
|
|
|
Oid type_id, Oid attrtype, int32 attrtypmod,
|
|
|
|
|
bool isExplicit);
|
1999-11-01 00:06:21 -05:00
|
|
|
extern List *checkInsertTargets(ParseState *pstate, List *cols,
|
2000-04-12 13:17:23 -04:00
|
|
|
List **attrnos);
|
2001-10-28 01:26:15 -05:00
|
|
|
|
2001-11-05 12:46:40 -05:00
|
|
|
#endif /* PARSE_TARGET_H */
|