feat: something

This commit is contained in:
2025-05-14 21:30:16 +00:00
parent 83029b52ea
commit b3172edbd7

View File

@@ -884,12 +884,9 @@ template_render(MemoryContext context, TemplateNode *node, Datum jsonb_context,
elog(DEBUG1, "Starting template rendering");
/* Use PG_TRY/PG_CATCH to handle errors during the entire rendering process */
PG_TRY();
{
while (current)
{
PG_TRY();
{
switch (current->type)
{
@@ -1379,14 +1376,6 @@ template_render(MemoryContext context, TemplateNode *node, Datum jsonb_context,
elog(WARNING, "N*UNKN: Unknown node type: %d", current->type);
break;
}
}
PG_CATCH();
{
elog(WARNING, "Error processing template node of type %d", current->type);
FlushErrorState();
/* Continue with next node */
}
PG_END_TRY();
if (*error)
break;
@@ -2280,4 +2269,3 @@ get_jsonb_value_by_path(Jsonb *jb, const char *path, bool *found)
pfree(path_copy);
return result;
}