mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Remove un-needed references to Name.
This commit is contained in:
parent
a6ca652508
commit
aabdd3094c
@ -218,7 +218,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.17 1998/07/19 05:49:18 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/gram.c,v 2.18 1998/07/20 11:17:10 momjian Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.21 1998/07/12 21:29:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.22 1998/07/20 11:17:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1286,7 +1286,6 @@ ParseComplexProjection(ParseState *pstate,
|
||||
{
|
||||
Oid argtype;
|
||||
Oid argrelid;
|
||||
Name relname;
|
||||
Relation rd;
|
||||
Oid relid;
|
||||
int attnum;
|
||||
@ -1317,7 +1316,6 @@ ParseComplexProjection(ParseState *pstate,
|
||||
if (RelationIsValid(rd))
|
||||
{
|
||||
relid = RelationGetRelationId(rd);
|
||||
relname = RelationGetRelationName(rd);
|
||||
heap_close(rd);
|
||||
}
|
||||
if (RelationIsValid(rd))
|
||||
@ -1376,7 +1374,6 @@ ParseComplexProjection(ParseState *pstate,
|
||||
if (RelationIsValid(rd))
|
||||
{
|
||||
relid = RelationGetRelationId(rd);
|
||||
relname = RelationGetRelationName(rd);
|
||||
heap_close(rd);
|
||||
}
|
||||
if (RelationIsValid(rd))
|
||||
@ -1414,17 +1411,14 @@ ParseComplexProjection(ParseState *pstate,
|
||||
if (RelationIsValid(rd))
|
||||
{
|
||||
relid = RelationGetRelationId(rd);
|
||||
relname = RelationGetRelationName(rd);
|
||||
heap_close(rd);
|
||||
}
|
||||
if (RelationIsValid(rd) &&
|
||||
(attnum = get_attnum(relid, funcname))
|
||||
!= InvalidAttrNumber)
|
||||
{
|
||||
|
||||
param->paramtype = attnumTypeId(rd, attnum);
|
||||
param->param_tlist = setup_tlist(funcname, relid);
|
||||
return ((Node *) param);
|
||||
if ((attnum = get_attnum(relid, funcname))
|
||||
!= InvalidAttrNumber)
|
||||
{
|
||||
param->paramtype = attnumTypeId(rd, attnum);
|
||||
param->param_tlist = setup_tlist(funcname, relid);
|
||||
return ((Node *) param);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.17 1998/07/12 21:29:20 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.18 1998/07/20 11:17:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -280,7 +280,7 @@ make_array_ref(Node *expr,
|
||||
|
||||
if (type_struct_array->typelem == InvalidOid)
|
||||
elog(ERROR, "make_array_ref: type %s is not an array",
|
||||
(Name) &(type_struct_array->typname.data[0]));
|
||||
type_struct_array->typname);
|
||||
|
||||
/* get the type tuple for the element type */
|
||||
type_tuple = SearchSysCacheTuple(TYPOID,
|
||||
@ -362,7 +362,7 @@ make_array_set(Expr *target_expr,
|
||||
|
||||
if (type_struct_array->typelem == InvalidOid)
|
||||
elog(ERROR, "make_array_ref: type %s is not an array",
|
||||
(Name) &(type_struct_array->typname.data[0]));
|
||||
type_struct_array->typname);
|
||||
/* get the type tuple for the element type */
|
||||
type_tuple = SearchSysCacheTuple(TYPOID,
|
||||
ObjectIdGetDatum(type_struct_array->typelem),
|
||||
|
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.12 1998/07/12 21:29:21 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_type.c,v 1.13 1998/07/20 11:17:11 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -234,7 +234,7 @@ GetArrayElementType(Oid typearray)
|
||||
if (type_struct_array->typelem == InvalidOid)
|
||||
{
|
||||
elog(ERROR, "GetArrayElementType: type %s is not an array",
|
||||
(Name) &(type_struct_array->typname.data[0]));
|
||||
type_struct_array->typname);
|
||||
}
|
||||
|
||||
return (type_struct_array->typelem);
|
||||
|
Loading…
Reference in New Issue
Block a user