Handle ExecEvalExprSwitchContext changes

Weirdly, this is one of the places PostgreSQL _removed_ an argument. We
only passed NULL anyways, so just removing it works.
pull/1439/head
Jason Petersen 2017-04-19 23:32:40 -06:00
parent 6c48c93b6a
commit 6fbfe33c51
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 4 additions and 0 deletions

View File

@ -364,7 +364,11 @@ citus_evaluate_expr(Expr *expr, Oid result_type, int32 result_typmod,
/*
* And evaluate it.
*/
#if (PG_VERSION_NUM >= 100000)
const_val = ExecEvalExprSwitchContext(exprstate, econtext, &const_is_null);
#else
const_val = ExecEvalExprSwitchContext(exprstate, econtext, &const_is_null, NULL);
#endif
/* Get info needed about result datatype */
get_typlenbyval(result_type, &resultTypLen, &resultTypByVal);