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

Commit c17b2d1

Browse files
committed
Fix for constbyval.
1 parent 33572dd commit c17b2d1

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

src/backend/parser/parse_expr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.34 1998/09/01 04:30:30 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.35 1998/10/01 22:51:20 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -627,7 +627,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int32 atttypmod)
627627
(Size) len,
628628
(Datum) lcp,
629629
false,
630-
false, /* was omitted */
630+
typeByVal(tp),
631631
false, /* not a set */
632632
true /* is cast */ );
633633

src/include/nodes/makefuncs.h

+24-25
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: makefuncs.h,v 1.14 1998/09/01 04:36:37 momjian Exp $
9+
* $Id: makefuncs.h,v 1.15 1998/10/01 22:51:22 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -18,36 +18,35 @@
1818
#include <utils/fcache.h>
1919

2020
extern Oper *makeOper(Oid opno,
21-
Oid opid,
22-
Oid opresulttype,
23-
int opsize,
24-
FunctionCachePtr op_fcache);
21+
Oid opid,
22+
Oid opresulttype,
23+
int opsize,
24+
FunctionCachePtr op_fcache);
2525

2626
extern Var *makeVar(Index varno,
27-
AttrNumber varattno,
28-
Oid vartype,
29-
int32 vartypmod,
30-
Index varlevelsup,
31-
Index varnoold,
32-
AttrNumber varoattno);
27+
AttrNumber varattno,
28+
Oid vartype,
29+
int32 vartypmod,
30+
Index varlevelsup,
31+
Index varnoold,
32+
AttrNumber varoattno);
3333

34-
extern TargetEntry *
35-
makeTargetEntry(Resdom *resdom, Node *expr);
34+
extern TargetEntry *makeTargetEntry(Resdom *resdom, Node *expr);
3635

3736
extern Resdom *makeResdom(AttrNumber resno,
38-
Oid restype,
39-
int32 restypmod,
40-
char *resname,
41-
Index reskey,
42-
Oid reskeyop,
43-
int resjunk);
37+
Oid restype,
38+
int32 restypmod,
39+
char *resname,
40+
Index reskey,
41+
Oid reskeyop,
42+
int resjunk);
4443

4544
extern Const *makeConst(Oid consttype,
46-
int constlen,
47-
Datum constvalue,
48-
bool constisnull,
49-
bool constbyval,
50-
bool constisset,
51-
bool constiscast);
45+
int constlen,
46+
Datum constvalue,
47+
bool constisnull,
48+
bool constbyval,
49+
bool constisset,
50+
bool constiscast);
5251

5352
#endif /* MAKEFUNC_H */

0 commit comments

Comments
 (0)