Hi,
I'm adapting an application from Oracle to Informix, and hit a stumbling block regarding Cursors. I'm using Interface mappers, and the call in question looks like this:
@SelectProvider(type = InformixMapper.PureSqlProvider.class, method = "sql")
@Options(timeout = 150,resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = 100)
Cursor<myDTO> getData(String sql, @Param("filterData")Map<String, String> filterData);
I am using a Cursor because this particular call may return a lot of data, and waiting for all of it to make its way from the database to the app server is problematic.
The issue is that the Informix driver is throwing
Method not supported : IfxStatement.closeOnCompletion()
when I call this statement. Has anyone run into this, and are there any known fixes or workarounds beyond just switching the method to return a List instead?
Currently using Mybatis 3.5.11, Informix driver 4.10.J and JDK 11. I tried updating the Informix driver but got the same result.
Thanks in advance for any help anyone can offer.