You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by od...@apache.org on 2016/05/03 02:33:20 UTC

[04/13] incubator-hawq git commit: HAWQ-689. Create table with (oids) in PBE should check whether arg of oids is NULL.

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/HAWQ-703
Commit: 76658bc1ae4dea666ac6fe86e7fd3ae54474fe61
Parents: 95197ad
Author: hzhang2 <zh...@163.com>
Authored: Wed Apr 20 13:44:07 2016 +0800
Committer: hzhang2 <zh...@163.com>
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;