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
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
2001-01-25 03:43:33 +08:00
|
|
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
2000-01-26 13:58:53 +08:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1997-11-26 06:07:18 +08:00
|
|
|
*
|
2001-10-25 13:50:21 +08:00
|
|
|
* $Id: parse_expr.h,v 1.23 2001/10/25 05:50:06 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;
|
2001-09-20 22:20:28 +08:00
|
|
|
extern bool Transform_null_equals;
|
2000-03-17 13:29:07 +08:00
|
|
|
|
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);
|
2000-10-07 08:58:23 +08:00
|
|
|
extern char *TypeNameToInternalName(TypeName *typename);
|
1998-09-01 12:40:42 +08:00
|
|
|
#endif /* PARSE_EXPR_H */
|