mirror of https://github.com/citusdata/citus.git
Fix option parse
parent
50201f4bec
commit
72119112eb
|
@ -144,8 +144,11 @@ AddOptionsToCreateViewCommand(StringInfo buf, ViewStmt *stmt)
|
|||
}
|
||||
|
||||
appendStringInfoString(buf, option->defname);
|
||||
appendStringInfoString(buf, "=");
|
||||
appendStringInfoString(buf, defGetString(option));
|
||||
if (option->arg != NULL)
|
||||
{
|
||||
appendStringInfoString(buf, "=");
|
||||
appendStringInfoString(buf, defGetString(option));
|
||||
}
|
||||
}
|
||||
|
||||
appendStringInfoString(buf, ") ");
|
||||
|
|
|
@ -820,15 +820,16 @@ DeferErrorIfHasUnsupportedDependency(const ObjectAddress *objectAddress)
|
|||
|
||||
if (IsObjectDistributed(objectAddress))
|
||||
{
|
||||
appendStringInfo(hintInfo, "Distribute \"%s\" first to update \"%s\" on worker nodes",
|
||||
dependencyDescription,
|
||||
objectDescription);
|
||||
appendStringInfo(hintInfo,
|
||||
"Distribute \"%s\" first to update \"%s\" on worker nodes",
|
||||
dependencyDescription,
|
||||
objectDescription);
|
||||
}
|
||||
else
|
||||
{
|
||||
appendStringInfo(hintInfo, "Distribute \"%s\" first to distribute \"%s\"",
|
||||
dependencyDescription,
|
||||
objectDescription);
|
||||
dependencyDescription,
|
||||
objectDescription);
|
||||
}
|
||||
|
||||
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||
|
|
Loading…
Reference in New Issue