EnterpriseDB / mysql_fdw

PostgreSQL foreign data wrapper for MySQL
Other
530 stars 162 forks source link

PostgreSQL 10 support? #138

Closed ArturFormella closed 7 years ago

ArturFormella commented 7 years ago

Hello! I have the following issue with PostgreSQL 10:

make USE_PGXS=1
(...)
mysql_fdw.c: In function ‘process_query_params’:
mysql_fdw.c:2110:16: error: too many arguments to function ‘ExecEvalExpr’
   expr_value = ExecEvalExpr(expr_state, econtext, &isNull, NULL);
                ^
In file included from /usr/include/postgresql/server/commands/explain.h:16:0,
                 from mysql_fdw.c:33:
/usr/include/postgresql/server/executor/executor.h:266:1: note: declared here
 ExecEvalExpr(ExprState *state,
 ^
<builtin>: recipe for target 'mysql_fdw.o' failed
make: *** [mysql_fdw.o] Error 1
ArturFormella commented 7 years ago

Oh, I've changed mysql_fdw.c:2110 into: expr_value = ExecEvalExpr(expr_state, econtext, &isNull); and it the error seems to be fixed.