Include int8 as a built-in data type.
authorThomas G. Lockhart
Wed, 8 Jul 1998 14:18:45 +0000 (14:18 +0000)
committerThomas G. Lockhart
Wed, 8 Jul 1998 14:18:45 +0000 (14:18 +0000)
Merge "resjunk" handling with automatic type conversion
 when selecting from another column.

src/include/parser/parse_coerce.h
src/include/parser/parse_target.h

index 39727e7964fefd1e2f1c199dce84117ed89e5333..3b12054b6e04f9e25a52514e3a32b3b2ee25be1f 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: parse_coerce.h,v 1.2 1998/05/29 14:02:28 thomas Exp $
+ * $Id: parse_coerce.h,v 1.3 1998/07/08 14:18:45 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -39,8 +39,9 @@ typedef enum CATEGORY {
        || ((t) == VARCHAROID) \
        || ((t) == TEXTOID) \
        || ((t) == INT4OID) \
-       || ((t) == DATETIMEOID) \
+       || ((t) == INT8OID) \
        || ((t) == FLOAT8OID) \
+       || ((t) == DATETIMEOID) \
        || ((t) == TIMESTAMPOID) \
        || ((t) == ABSTIMEOID) \
        || ((t) == RELTIMEOID) \
index 2275c283ce6f40aad40cb11f791f72ba6c9942cb..d270b6803b89bb8dcf381de4dc7838a195b96135 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: parse_target.h,v 1.7 1998/06/05 03:49:19 momjian Exp $
+ * $Id: parse_target.h,v 1.8 1998/07/08 14:18:45 thomas Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 extern List *transformTargetList(ParseState *pstate, List *targetlist);
 extern List *makeTargetNames(ParseState *pstate, List *cols);
-extern void transformTargetId(ParseState *pstate, Node *node,
-   TargetEntry *tent, char *resname, int16 resjunk);
-extern Node *coerce_target_expr(ParseState *pstate, Node *expr,
-                               Oid type_id, Oid attrtype);
+extern TargetEntry *
+transformTargetIdent(ParseState *pstate,
+                    Node *node,
+                    TargetEntry *tent,
+                    char **resname,
+                    char *refname,
+                    char *colname,
+                    int16 resjunk);
+extern Node *
+CoerceTargetExpr(ParseState *pstate, Node *expr,
+                Oid type_id, Oid attrtype);
 
 #endif                         /* PARSE_TARGET_H */