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