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