diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-01-22 01:44:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-01-22 01:44:02 +0000 |
commit | 84876289cc834819c516e28d93bd52569e49e993 (patch) | |
tree | 1ffce2e63888a5566f41b597383850d9eb412a3e /src/backend/parser/parser.c | |
parent | a4ee68d1d4d1c09f65a6f4b9f5c3cb6130eb953a (diff) | |
download | postgresql-84876289cc834819c516e28d93bd52569e49e993.tar.gz postgresql-84876289cc834819c516e28d93bd52569e49e993.zip |
Cast constants to the type of the other binary operand.
Invalidate vacuum relation cache to use new row counts from vacuum.
Diffstat (limited to 'src/backend/parser/parser.c')
-rw-r--r-- | src/backend/parser/parser.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/backend/parser/parser.c b/src/backend/parser/parser.c index 0b04666c179..1babdb7e03f 100644 --- a/src/backend/parser/parser.c +++ b/src/backend/parser/parser.c @@ -6,7 +6,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.16 1996/12/26 17:47:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.17 1997/01/22 01:43:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -283,9 +283,10 @@ parser_typecast(Value *expr, TypeName *typename, int typlen) adt = makeConst(typeid(tp), len, (Datum)lcp , - 0, + false, tbyvalue(tp), - 0 /* not a set */); + false, /* not a set */ + true /* is cast */); if (string_palloced) pfree(const_string); @@ -365,8 +366,9 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen) (Size) 0, (Datum) NULL, true, /* isnull */ - 0 /* was omitted */, - 0 /* not a set */); + false, /* was omitted */ + false, /* not a set */ + true /* is cast */); return ((Node*) adt); } @@ -401,9 +403,10 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen) adt = makeConst(typeid(tp), (Size)len, (Datum)lcp, - 0, - 0 /*was omitted*/, - 0 /* not a set */); + false, + false, /*was omitted*/ + false, /* not a set */ + true /* is cast */); /* printf("adt %s : %u %d %d\n",CString(expr),typeid(tp) , len,cp); |