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, option->defname);
|
||||||
appendStringInfoString(buf, "=");
|
if (option->arg != NULL)
|
||||||
appendStringInfoString(buf, defGetString(option));
|
{
|
||||||
|
appendStringInfoString(buf, "=");
|
||||||
|
appendStringInfoString(buf, defGetString(option));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
appendStringInfoString(buf, ") ");
|
appendStringInfoString(buf, ") ");
|
||||||
|
|
|
@ -820,15 +820,16 @@ DeferErrorIfHasUnsupportedDependency(const ObjectAddress *objectAddress)
|
||||||
|
|
||||||
if (IsObjectDistributed(objectAddress))
|
if (IsObjectDistributed(objectAddress))
|
||||||
{
|
{
|
||||||
appendStringInfo(hintInfo, "Distribute \"%s\" first to update \"%s\" on worker nodes",
|
appendStringInfo(hintInfo,
|
||||||
dependencyDescription,
|
"Distribute \"%s\" first to update \"%s\" on worker nodes",
|
||||||
objectDescription);
|
dependencyDescription,
|
||||||
|
objectDescription);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
appendStringInfo(hintInfo, "Distribute \"%s\" first to distribute \"%s\"",
|
appendStringInfo(hintInfo, "Distribute \"%s\" first to distribute \"%s\"",
|
||||||
dependencyDescription,
|
dependencyDescription,
|
||||||
objectDescription);
|
objectDescription);
|
||||||
}
|
}
|
||||||
|
|
||||||
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||||
|
|
Loading…
Reference in New Issue