File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ postgresReScanForeignScan(ForeignScanState *node)
785
785
{
786
786
PgFdwScanState * fsstate = (PgFdwScanState * ) node -> fdw_state ;
787
787
Datum * values = NULL ;
788
- bool * nulls = NULL ;
788
+ char * nulls = NULL ;
789
789
MemoryContext oldcontext = MemoryContextSwitchTo (fsstate -> spi_context );
790
790
Oid * argtypes = NULL ;
791
791
int rc ;
@@ -798,20 +798,22 @@ postgresReScanForeignScan(ForeignScanState *node)
798
798
int i = 0 ;
799
799
800
800
values = palloc (sizeof (Datum )* fsstate -> numParams );
801
- nulls = palloc (sizeof (bool )* fsstate -> numParams );
801
+ nulls = palloc (sizeof (char )* fsstate -> numParams );
802
802
argtypes = palloc (sizeof (Oid )* fsstate -> numParams );
803
803
804
804
foreach (lc , param_exprs )
805
805
{
806
806
ExprState * expr_state = (ExprState * ) lfirst (lc );
807
807
/* Evaluate the parameter expression */
808
+ bool isNull ;
808
809
#if PG_VERSION_NUM < 100000
809
810
ExprDoneCond isDone ;
810
- values [i ] = ExecEvalExpr (expr_state , econtext , & nulls [ i ] , & isDone );
811
+ values [i ] = ExecEvalExpr (expr_state , econtext , & isNull , & isDone );
811
812
#else
812
- values [i ] = ExecEvalExpr (expr_state , econtext , & nulls [ i ] );
813
+ values [i ] = ExecEvalExpr (expr_state , econtext , & isNull );
813
814
#endif
814
815
argtypes [i ] = exprType ((Node * )expr_state -> expr );
816
+ nulls [i ] = (char )isNull ;
815
817
i += 1 ;
816
818
}
817
819
}
You can’t perform that action at this time.
0 commit comments