From 6338f0b20fd7a828e463269a9324667c0da2ea4c Mon Sep 17 00:00:00 2001 From: Ronan Dunklau Date: Tue, 27 Sep 2016 09:48:07 +0200 Subject: [PATCH] Use the param type instead of the column type Fixes #170 --- src/python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python.c b/src/python.c index 3d9c8b6c9..fd8604de9 100644 --- a/src/python.c +++ b/src/python.c @@ -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: