diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-10-01 22:51:22 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-10-01 22:51:22 +0000 |
commit | c17b2d1b16eec24ae6a7daab3f7d059871273d0c (patch) | |
tree | a6a26df7e1b2826d7312bc6b0113f3cd4566579d /src | |
parent | 33572dd7ed094129037d4154a710c96218c50ed6 (diff) | |
download | postgresql-c17b2d1b16eec24ae6a7daab3f7d059871273d0c.tar.gz postgresql-c17b2d1b16eec24ae6a7daab3f7d059871273d0c.zip |
Fix for constbyval.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/parse_expr.c | 4 | ||||
-rw-r--r-- | src/include/nodes/makefuncs.h | 49 |
2 files changed, 26 insertions, 27 deletions
diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index a296caad55e..6bb923afce0 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -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 */ ); diff --git a/src/include/nodes/makefuncs.h b/src/include/nodes/makefuncs.h index 43c8d088866..6a2d7be7265 100644 --- a/src/include/nodes/makefuncs.h +++ b/src/include/nodes/makefuncs.h @@ -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 $ * *------------------------------------------------------------------------- */ @@ -18,36 +18,35 @@ #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 */ |