Skip to content

Commit

Permalink
Use the param type instead of the column type
Browse files Browse the repository at this point in the history
Fixes #170
  • Loading branch information
Ronan Dunklau committed Sep 27, 2016
1 parent 0ac7cbf commit 6338f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ execute(ForeignScanState *node, ExplainState *es)
newqual->base.isArray = qual->isArray;
newqual->base.useOr = qual->useOr;
newqual->value = ExecEvalExpr(expr_state, econtext, &isNull, NULL);
newqual->base.typeoid = qual->typeoid;
newqual->base.typeoid = ((Param*) ((MulticornParamQual *) qual)->expr)->paramtype;
newqual->isnull = isNull;
break;
case T_Const:
Expand Down

0 comments on commit 6338f0b

Please sign in to comment.