]> granicus.if.org Git - postgresql/commitdiff
Fix for constbyval.
authorBruce Momjian <bruce@momjian.us>
Thu, 1 Oct 1998 22:51:22 +0000 (22:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 1 Oct 1998 22:51:22 +0000 (22:51 +0000)
src/backend/parser/parse_expr.c
src/include/nodes/makefuncs.h

index a296caad55efa8613d22a8c42c12d586a48ecd5e..6bb923afce027feb2b36796373b1229af52d10b4 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.34 1998/09/01 04:30:30 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.35 1998/10/01 22:51:20 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -627,7 +627,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int32 atttypmod)
                                        (Size) len,
                                        (Datum) lcp,
                                        false,
-                                       false,          /* was omitted */
+                                       typeByVal(tp),
                                        false,          /* not a set */
                                        true /* is cast */ );
 
index 43c8d088866ccec235d5fe4c2adff5c79836c087..6a2d7be72658048d01813c674dd4a9b0ebb03416 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: makefuncs.h,v 1.14 1998/09/01 04:36:37 momjian Exp $
+ * $Id: makefuncs.h,v 1.15 1998/10/01 22:51:22 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <utils/fcache.h>
 
 extern Oper *makeOper(Oid opno,
-                Oid opid,
-                Oid opresulttype,
-                int opsize,
-                FunctionCachePtr op_fcache);
+                                         Oid opid,
+                                         Oid opresulttype,
+                                         int opsize,
+                                         FunctionCachePtr op_fcache);
 
 extern Var *makeVar(Index varno,
-               AttrNumber varattno,
-               Oid vartype,
-               int32 vartypmod,
-               Index varlevelsup,
-               Index varnoold,
-               AttrNumber varoattno);
+                                       AttrNumber varattno,
+                                       Oid vartype,
+                                       int32 vartypmod,
+                                       Index varlevelsup,
+                                       Index varnoold,
+                                       AttrNumber varoattno);
 
-extern TargetEntry *
-                       makeTargetEntry(Resdom *resdom, Node *expr);
+extern TargetEntry *makeTargetEntry(Resdom *resdom, Node *expr);
 
 extern Resdom *makeResdom(AttrNumber resno,
-                  Oid restype,
-                  int32 restypmod,
-                  char *resname,
-                  Index reskey,
-                  Oid reskeyop,
-                  int resjunk);
+                                                 Oid restype,
+                                                 int32 restypmod,
+                                                 char *resname,
+                                                 Index reskey,
+                                                 Oid reskeyop,
+                                                 int resjunk);
 
 extern Const *makeConst(Oid consttype,
-                 int constlen,
-                 Datum constvalue,
-                 bool constisnull,
-                 bool constbyval,
-                 bool constisset,
-                 bool constiscast);
+                                               int constlen,
+                                               Datum constvalue,
+                                               bool constisnull,
+                                               bool constbyval,
+                                               bool constisset,
+                                               bool constiscast);
 
 #endif  /* MAKEFUNC_H */