Fix option parse

onder_view
Burak Velioglu 2022-04-20 18:23:46 +03:00
parent 50201f4bec
commit 72119112eb
2 changed files with 11 additions and 7 deletions

View File

@ -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, ") ");

View File

@ -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,