Fix warning about unused variable

This commit is contained in:
Magnus Hagander 2012-01-18 10:22:54 +01:00
parent 504f0c5d5d
commit ae137bcaab

View File

@ -102,7 +102,6 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
List *options) List *options)
{ {
Oid viewOid; Oid viewOid;
Oid namespaceId;
LOCKMODE lockmode; LOCKMODE lockmode;
CreateStmt *createStmt = makeNode(CreateStmt); CreateStmt *createStmt = makeNode(CreateStmt);
List *attrList; List *attrList;
@ -167,8 +166,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
* namespace is temporary. * namespace is temporary.
*/ */
lockmode = replace ? AccessExclusiveLock : NoLock; lockmode = replace ? AccessExclusiveLock : NoLock;
namespaceId = (void) RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
RangeVarGetAndCheckCreationNamespace(relation, lockmode, &viewOid);
if (OidIsValid(viewOid) && replace) if (OidIsValid(viewOid) && replace)
{ {