mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Remove unused constisset and constiscast fields of Const nodes. Clean
up code and documentation associated with Param nodes.
This commit is contained in:
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user