diff options
| author | Bruce Momjian | 1997-01-22 01:44:02 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1997-01-22 01:44:02 +0000 |
| commit | 84876289cc834819c516e28d93bd52569e49e993 (patch) | |
| tree | 1ffce2e63888a5566f41b597383850d9eb412a3e /src/backend/parser/analyze.c | |
| parent | a4ee68d1d4d1c09f65a6f4b9f5c3cb6130eb953a (diff) | |
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/analyze.c')
| -rw-r--r-- | src/backend/parser/analyze.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 29eb7d3cf98..463cc06c822 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.19 1996/12/17 01:53:26 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.20 1997/01/22 01:42:54 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1288,7 +1288,8 @@ make_targetlist_expr(ParseState *pstate, val, false, true, - true /* is set */); + true, /* is set */ + false); } else { lnext(expr) = makeConst(attrtype, @@ -1297,7 +1298,8 @@ make_targetlist_expr(ParseState *pstate, val,get_typelem(attrtype),-1), false, true /* Maybe correct-- 80% chance */, - false /* is not a set */); + false, /* is not a set */ + false); } } else if((Typecast_ok) && (attrtype != type_id)){ lnext(expr) = |
