Repository: incubator-hawq Updated Branches: refs/heads/master 95197ad7e -> 76658bc1a
HAWQ-689. Create table with (oids) in PBE should check whether arg of oids is NULL. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/76658bc1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/76658bc1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/76658bc1 Branch: refs/heads/master Commit: 76658bc1ae4dea666ac6fe86e7fd3ae54474fe61 Parents: 95197ad Author: hzhang2 <[email protected]> Authored: Wed Apr 20 13:44:07 2016 +0800 Committer: hzhang2 <[email protected]> Committed: Wed Apr 20 13:44:07 2016 +0800 ---------------------------------------------------------------------- src/backend/executor/execMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/76658bc1/src/backend/executor/execMain.c ---------------------------------------------------------------------- diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 5e8c6b1..3a43cec 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -4333,7 +4333,7 @@ CreateIntoRel(QueryDesc *queryDesc) if (!IsA(e, DefElem)) continue; - if (!IsA(e->arg, String)) + if (!e->arg || !IsA(e->arg, String)) continue; if (pg_strcasecmp(e->defname, "appendonly")) continue;
