diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-25 21:29:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-25 21:29:42 +0000 |
commit | f893ee271f1a500f7eb3f68de311080abfde8869 (patch) | |
tree | b45af28758b2e2e7258d44eef359ef23938a2e7a /src/backend/parser | |
parent | dbe100c4022e0125c103c3c0818ac5b327cc8283 (diff) |
Remove unused constisset and constiscast fields of Const nodes. Clean
up code and documentation associated with Param nodes.
Diffstat (limited to 'src/backend/parser')
-rw-r--r-- | src/backend/parser/gram.y | 8 | ||||
-rw-r--r-- | src/backend/parser/parse_coerce.c | 11 | ||||
-rw-r--r-- | src/backend/parser/parse_node.c | 12 |
3 files changed, 7 insertions, 24 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index df09e0177cc..d4c879f7702 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.382 2002/11/25 03:36:50 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.383 2002/11/25 21:29:40 tgl Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -4437,8 +4437,6 @@ select_limit_value: n->constvalue = Int32GetDatum($1); n->constisnull = FALSE; n->constbyval = TRUE; - n->constisset = FALSE; - n->constiscast = FALSE; $$ = (Node *)n; } | ALL @@ -4451,8 +4449,6 @@ select_limit_value: n->constvalue = (Datum) 0; n->constisnull = TRUE; n->constbyval = TRUE; - n->constisset = FALSE; - n->constiscast = FALSE; $$ = (Node *)n; } | PARAM @@ -4479,8 +4475,6 @@ select_offset_value: n->constvalue = Int32GetDatum($1); n->constisnull = FALSE; n->constbyval = TRUE; - n->constisset = FALSE; - n->constiscast = FALSE; $$ = (Node *)n; } | PARAM diff --git a/src/backend/parser/parse_coerce.c b/src/backend/parser/parse_coerce.c index a24af2de3e1..e6559086286 100644 --- a/src/backend/parser/parse_coerce.c +++ b/src/backend/parser/parse_coerce.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.86 2002/11/15 02:50:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.87 2002/11/25 21:29:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -161,7 +161,6 @@ coerce_type(Node *node, Oid inputTypeId, Oid targetTypeId, newcon->constlen = typeLen(targetType); newcon->constbyval = typeByVal(targetType); newcon->constisnull = con->constisnull; - newcon->constisset = false; if (!con->constisnull) { @@ -553,9 +552,7 @@ coerce_type_typmod(Node *node, Oid targetTypeId, int32 targetTypMod, sizeof(int32), Int32GetDatum(targetTypMod), false, - true, - false, - false); + true); args = makeList2(node, cons); @@ -566,9 +563,7 @@ coerce_type_typmod(Node *node, Oid targetTypeId, int32 targetTypMod, sizeof(bool), BoolGetDatum(cformat != COERCE_IMPLICIT_CAST), false, - true, - false, - false); + true); args = lappend(args, cons); } diff --git a/src/backend/parser/parse_node.c b/src/backend/parser/parse_node.c index 608a67921c1..088aaafb0b3 100644 --- a/src/backend/parser/parse_node.c +++ b/src/backend/parser/parse_node.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.73 2002/11/15 02:50:09 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.74 2002/11/25 21:29:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -293,9 +293,7 @@ transformArraySubscripts(ParseState *pstate, sizeof(int32), Int32GetDatum(1), false, - true, /* pass by value */ - false, - false); + true); /* pass by value */ } lowerIndexpr = lappend(lowerIndexpr, subexpr); } @@ -444,8 +442,6 @@ make_const(Value *value) -1, (Datum) NULL, true, - false, - false, false); return con; } @@ -454,9 +450,7 @@ make_const(Value *value) typelen, val, false, - typebyval, - false, /* not a set */ - false); /* not coerced */ + typebyval); return con; } |