Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2d4c6ca

Browse files
author
Thomas G. Lockhart
committed
Define new routines oper_exact() and oper_inexact().
Add coerce_target_expr().
1 parent d2404c1 commit 2d4c6ca

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/include/parser/parse_oper.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parse_oper.h,v 1.4 1998/02/26 04:42:47 momjian Exp $
9+
* $Id: parse_oper.h,v 1.5 1998/05/29 14:07:50 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -24,4 +24,7 @@ extern Operator oper(char *op, Oid arg1, Oid arg2, bool noWarnings);
2424
extern Operator right_oper(char *op, Oid arg);
2525
extern Operator left_oper(char *op, Oid arg);
2626

27+
extern Operator oper_exact(char *op, Oid arg1, Oid arg2, Node **ltree, Node **rtree, bool noWarnings);
28+
extern Operator oper_inexact(char *op, Oid arg1, Oid arg2, Node **ltree, Node **rtree, bool noWarnings);
29+
2730
#endif /* PARSE_OPER_H */

src/include/parser/parse_target.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parse_target.h,v 1.5 1998/05/21 03:53:51 scrappy Exp $
9+
* $Id: parse_target.h,v 1.6 1998/05/29 14:07:50 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -25,6 +25,9 @@
2525
extern List *transformTargetList(ParseState *pstate, List *targetlist);
2626
extern List *makeTargetNames(ParseState *pstate, List *cols);
2727
extern void transformTargetId(ParseState *pstate, Ident *ident,
28-
TargetEntry *tent, char *resname, int16 resjunk);
28+
TargetEntry *tent, char *resname,
29+
int16 resjunk);
30+
extern Node *coerce_target_expr(ParseState *pstate, Node *expr,
31+
Oid type_id, Oid attrtype);
2932

3033
#endif /* PARSE_TARGET_H */

0 commit comments

Comments
 (0)