提交 99d77e5f 编写于 作者: D Daniel Gustafsson

Move assertion to after context is printed

When hitting the assertion it's highly useful to see the WARNING
printed by the elog() as context for debugging. Move the assertion
to after the elog() call to ensure it's visible before erroring out.
上级 3db3dda2
......@@ -2819,9 +2819,9 @@ CreateCommandTag(Node *parsetree)
break;
default:
Assert(false);
elog(WARNING, "unrecognized node type: %d",
(int) nodeTag(parsetree));
Assert(false);
tag = "???";
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册