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, option->defname);
appendStringInfoString(buf, "="); if (option->arg != NULL)
appendStringInfoString(buf, defGetString(option)); {
appendStringInfoString(buf, "=");
appendStringInfoString(buf, defGetString(option));
}
} }
appendStringInfoString(buf, ") "); appendStringInfoString(buf, ") ");

View File

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