mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Remove useless const qualifier
Claiming that the typevar argument to DefineCompositeType() is const
was a plain lie. A similar case in DefineVirtualRelation() was
already changed in passing in commit 1575fbcb. Also clean up the now
unnecessary casts that used to cast away the const.
This commit is contained in:
@@ -1980,7 +1980,7 @@ AssignTypeArrayOid(void)
|
||||
*-------------------------------------------------------------------
|
||||
*/
|
||||
Oid
|
||||
DefineCompositeType(const RangeVar *typevar, List *coldeflist)
|
||||
DefineCompositeType(RangeVar *typevar, List *coldeflist)
|
||||
{
|
||||
CreateStmt *createStmt = makeNode(CreateStmt);
|
||||
Oid old_type_oid;
|
||||
@@ -1991,7 +1991,7 @@ DefineCompositeType(const RangeVar *typevar, List *coldeflist)
|
||||
* now set the parameters for keys/inheritance etc. All of these are
|
||||
* uninteresting for composite types...
|
||||
*/
|
||||
createStmt->relation = (RangeVar *) typevar;
|
||||
createStmt->relation = typevar;
|
||||
createStmt->tableElts = coldeflist;
|
||||
createStmt->inhRelations = NIL;
|
||||
createStmt->constraints = NIL;
|
||||
|
||||
@@ -254,7 +254,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
|
||||
* now set the parameters for keys/inheritance etc. All of these are
|
||||
* uninteresting for views...
|
||||
*/
|
||||
createStmt->relation = (RangeVar *) relation;
|
||||
createStmt->relation = relation;
|
||||
createStmt->tableElts = attrList;
|
||||
createStmt->inhRelations = NIL;
|
||||
createStmt->constraints = NIL;
|
||||
|
||||
Reference in New Issue
Block a user