Skip to content

Commit

Permalink
Fix compat with PG 10.
Browse files Browse the repository at this point in the history
Fixes #191
  • Loading branch information
rdunklau committed Sep 20, 2017
1 parent 268f73f commit 213ddb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/python.c
Expand Up @@ -931,7 +931,12 @@ execute(ForeignScanState *node, ExplainState *es)
newqual->base.opname = qual->opname;
newqual->base.isArray = qual->isArray;
newqual->base.useOr = qual->useOr;

#if PG_VERSION_NUM >= 100000
newqual->value = ExecEvalExpr(expr_state, econtext, &isNull);
#else
newqual->value = ExecEvalExpr(expr_state, econtext, &isNull, NULL);
#endif
newqual->base.typeoid = ((Param*) ((MulticornParamQual *) qual)->expr)->paramtype;
newqual->isnull = isNull;
break;
Expand Down

0 comments on commit 213ddb1

Please sign in to comment.