From 2d4c6cab962fa17486ad2843f4d2bf0e5eec3628 Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Fri, 29 May 1998 14:07:50 +0000
Subject: [PATCH] Define new routines oper_exact() and oper_inexact(). Add
 coerce_target_expr().

---
 src/include/parser/parse_oper.h   | 5 ++++-
 src/include/parser/parse_target.h | 7 +++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/include/parser/parse_oper.h b/src/include/parser/parse_oper.h
index 01f21adc1ef..7a0c9cd97f4 100644
--- a/src/include/parser/parse_oper.h
+++ b/src/include/parser/parse_oper.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: parse_oper.h,v 1.4 1998/02/26 04:42:47 momjian Exp $
+ * $Id: parse_oper.h,v 1.5 1998/05/29 14:07:50 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -24,4 +24,7 @@ extern Operator oper(char *op, Oid arg1, Oid arg2, bool noWarnings);
 extern Operator right_oper(char *op, Oid arg);
 extern Operator left_oper(char *op, Oid arg);
 
+extern Operator oper_exact(char *op, Oid arg1, Oid arg2, Node **ltree, Node **rtree, bool noWarnings);
+extern Operator oper_inexact(char *op, Oid arg1, Oid arg2, Node **ltree, Node **rtree, bool noWarnings);
+
 #endif							/* PARSE_OPER_H */
diff --git a/src/include/parser/parse_target.h b/src/include/parser/parse_target.h
index cb75d61615e..466f0329b6a 100644
--- a/src/include/parser/parse_target.h
+++ b/src/include/parser/parse_target.h
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: parse_target.h,v 1.5 1998/05/21 03:53:51 scrappy Exp $
+ * $Id: parse_target.h,v 1.6 1998/05/29 14:07:50 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -25,6 +25,9 @@
 extern List *transformTargetList(ParseState *pstate, List *targetlist);
 extern List *makeTargetNames(ParseState *pstate, List *cols);
 extern void transformTargetId(ParseState *pstate, Ident *ident,
-	TargetEntry *tent, char *resname, int16 resjunk);
+							  TargetEntry *tent, char *resname,
+							  int16 resjunk);
+extern Node *coerce_target_expr(ParseState *pstate, Node *expr,
+								Oid type_id, Oid attrtype);
 
 #endif							/* PARSE_TARGET_H */
-- 
GitLab