提交 7025043b 编写于 作者: A Ashwin Agrawal

Fix NULL reference of stmt reported by coverity.

上级 6e768c78
......@@ -1585,7 +1585,7 @@ RemoveRelation(const RangeVar *relation, DropBehavior behavior,
* altered while we were waiting.
*/
relOid = RangeVarGetRelidExtended(
relation, AccessExclusiveLock, stmt->missing_ok,
relation, AccessExclusiveLock, stmt?stmt->missing_ok:false,
false /* nowait */, NULL /* callback */,
NULL /* callback_arg */);
......@@ -1598,7 +1598,7 @@ RemoveRelation(const RangeVar *relation, DropBehavior behavior,
* Drop without "if exists" won't even come here, as would error
* inside RangeVarGetRelidExtended.
*/
DropErrorMsgNonExistent(relation, relkind, stmt->missing_ok);
DropErrorMsgNonExistent(relation, relkind, stmt?stmt->missing_ok:false);
if (Gp_role == GP_ROLE_DISPATCH)
{
UnlockRelationOid(DependRelationId, RowExclusiveLock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册