mirror of https://github.com/citusdata/citus.git
Guard against missing address function
parent
9b583fdb0d
commit
29ed28623d
|
@ -666,8 +666,11 @@ ProcessUtilityInternal(PlannedStmt *pstmt,
|
|||
* MarkObjectDistributedLocally since altering already distributed object won't
|
||||
* call MarkObjectDistributedLocally but will hit the check here.
|
||||
*/
|
||||
ObjectAddress targetObject = GetObjectAddressFromParseTree(parsetree, false);
|
||||
ErrorIfCircularDependencyExists(&targetObject);
|
||||
if (ops && ops->address)
|
||||
{
|
||||
ObjectAddress targetObject = GetObjectAddressFromParseTree(parsetree, true);
|
||||
ErrorIfCircularDependencyExists(&targetObject);
|
||||
}
|
||||
|
||||
if (ops && ops->postprocess)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue