mirror of https://github.com/citusdata/citus.git
Fix getting the view address
parent
99876709cc
commit
81ea6c308c
|
@ -134,8 +134,7 @@ ViewStmtObjectAddress(Node *node, bool missing_ok)
|
|||
{
|
||||
ViewStmt *stmt = castNode(ViewStmt, node);
|
||||
|
||||
Oid schemaOid = RangeVarGetCreationNamespace(stmt->view);
|
||||
Oid viewOid = get_relname_relid(stmt->view->relname, schemaOid);
|
||||
Oid viewOid = RangeVarGetRelid(stmt->view, NoLock, missing_ok);
|
||||
|
||||
ObjectAddress viewAddress = { 0 };
|
||||
ObjectAddressSet(viewAddress, RelationRelationId, viewOid);
|
||||
|
|
Loading…
Reference in New Issue