Repository: incubator-hawq Updated Branches: refs/heads/master 71911c1ce -> a81ae771e
HAWQ-506. Fix coverity issue for HAWQ-455 Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/a81ae771 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/a81ae771 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/a81ae771 Branch: refs/heads/master Commit: a81ae771e2818fecbfea961fd9c1e77d61c01675 Parents: 71911c1 Author: ivan <iw...@pivotal.io> Authored: Thu Mar 10 10:05:28 2016 +0800 Committer: ivan <iw...@pivotal.io> Committed: Thu Mar 10 10:05:28 2016 +0800 ---------------------------------------------------------------------- src/backend/commands/tablecmds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a81ae771/src/backend/commands/tablecmds.c ---------------------------------------------------------------------- diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index aceee02..e7a53b9 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -13824,11 +13824,9 @@ ATPExecPartAdd(AlteredTableInfo *tab, errOmitLocation(true))); /* XXX XXX: move this check to gram.y ? */ - if (pc2->arg1) + if (pElem) { - PartitionElem *pelem = (PartitionElem *) pc2->arg1; - - if (pelem->boundSpec) + if (pElem->boundSpec) ereport(ERROR, (errcode(ERRCODE_INVALID_TABLE_DEFINITION), errmsg("invalid use of boundary specification "