Skip to content
Snippets Groups Projects
Commit ae137bca authored by Magnus Hagander's avatar Magnus Hagander
Browse files

Fix warning about unused variable

parent 504f0c5d
Branches
Tags
No related merge requests found
...@@ -102,7 +102,6 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace, ...@@ -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, ...@@ -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)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment