提交 24471e17 编写于 作者: H Heikki Linnakangas

Avoid assertion in CdbDispatchUtilityStatement without debug_query_string.

It's just for debugging purposes, so be lenient.

Fixes github issue https://github.com/greenplum-db/gpdb/issues/6298.
Reviewed-by: NHubert Zhang <hzhang@pivotal.io>
上级 329f5f1b
......@@ -383,7 +383,8 @@ CdbDispatchUtilityStatement(struct Node *stmt,
bool needTwoPhase = flags & DF_NEED_TWO_PHASE;
bool withSnapshot = flags & DF_WITH_SNAPSHOT;
dtmPreCommand("CdbDispatchUtilityStatement", debug_query_string,
dtmPreCommand("CdbDispatchUtilityStatement",
debug_query_string ? debug_query_string : "(none)",
NULL, needTwoPhase, withSnapshot,
false /* inCursor */ );
......@@ -1425,7 +1426,8 @@ CdbDispatchCopyStart(struct CdbCopy *cdbCopy, Node *stmt, int flags)
bool needTwoPhase = flags & DF_NEED_TWO_PHASE;
bool withSnapshot = flags & DF_WITH_SNAPSHOT;
dtmPreCommand("CdbDispatchCopyStart", debug_query_string,
dtmPreCommand("CdbDispatchCopyStart",
debug_query_string ? debug_query_string : "(none)",
NULL, needTwoPhase, withSnapshot,
false /* inCursor */ );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册