summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/execQual.c2
-rw-r--r--src/backend/executor/functions.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c
index e410818900d..c153ca00dbf 100644
--- a/src/backend/executor/execQual.c
+++ b/src/backend/executor/execQual.c
@@ -4653,7 +4653,7 @@ ExecInitExpr(Expr *node, PlanState *parent)
* don't really care what type of NULL it is, so
* always make an int4 NULL.
*/
- e = (Expr *) makeNullConst(INT4OID, -1);
+ e = (Expr *) makeNullConst(INT4OID, -1, InvalidOid);
}
estate = ExecInitExpr(e, parent);
outlist = lappend(outlist, estate);
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c
index ce3b77b847e..70d126c5213 100644
--- a/src/backend/executor/functions.c
+++ b/src/backend/executor/functions.c
@@ -1501,6 +1501,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
/* The type of the null we insert isn't important */
null_expr = (Expr *) makeConst(INT4OID,
-1,
+ InvalidOid,
sizeof(int32),
(Datum) 0,
true, /* isnull */
@@ -1562,6 +1563,7 @@ check_sql_fn_retval(Oid func_id, Oid rettype, List *queryTreeList,
/* The type of the null we insert isn't important */
null_expr = (Expr *) makeConst(INT4OID,
-1,
+ InvalidOid,
sizeof(int32),
(Datum) 0,
true, /* isnull */