1997-11-25 17:07:18 -05:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
1999-07-18 20:26:20 -04:00
|
|
|
* parse_expr.h
|
1997-11-25 17:07:18 -05:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
2000-01-26 00:58:53 -05:00
|
|
|
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1997-11-25 17:07:18 -05:00
|
|
|
*
|
2000-06-14 23:33:12 -04:00
|
|
|
* $Id: parse_expr.h,v 1.19 2000/06/15 03:32:55 momjian Exp $
|
1997-11-25 17:07:18 -05:00
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef PARSE_EXPR_H
|
|
|
|
|
#define PARSE_EXPR_H
|
|
|
|
|
|
1999-07-15 19:04:24 -04:00
|
|
|
#include "parser/parse_node.h"
|
1997-11-25 17:07:18 -05:00
|
|
|
|
1999-07-18 20:26:20 -04:00
|
|
|
#define EXPR_COLUMN_FIRST 1
|
|
|
|
|
#define EXPR_RELATION_FIRST 2
|
|
|
|
|
|
2000-03-17 00:29:07 -05:00
|
|
|
extern int max_expr_depth;
|
|
|
|
|
|
1997-11-25 20:14:33 -05:00
|
|
|
extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence);
|
1998-02-25 23:46:47 -05:00
|
|
|
extern Oid exprType(Node *expr);
|
1999-07-18 20:26:20 -04:00
|
|
|
extern int32 exprTypmod(Node *expr);
|
2000-02-26 16:11:10 -05:00
|
|
|
extern bool exprIsLengthCoercion(Node *expr, int32 *coercedTypmod);
|
2000-03-17 00:29:07 -05:00
|
|
|
extern void parse_expr_init(void);
|
1997-11-25 17:07:18 -05:00
|
|
|
|
1998-09-01 00:40:42 -04:00
|
|
|
#endif /* PARSE_EXPR_H */
|