I'm using a jdbcRowSet data source and have a simple sqlQuery:
SELECT * FROM MYSCHEMA.MYTABLE WHERE KEYCOLUMN=?
I want to use this SQL with a parameter to indicate which rows I'd like to retrieve. To do so I'm trying to compute an sqlParameter, of type INTEGER. Whenever I try to do so, I end up with an error message
DB2 SQL Error: SQLCODE=-313, SQLSTATE=07004, SQLERRMC=null, DRIVER=4.7.85
Even when I put a simple single digit into the sqlParameter value property, I end up with this error.
Whenever I hardcode the parameter directly into the sqlQuery, everything works fine. What is going on here? Any help is greatly appreciated.
(IBM Lotus Domino 8.5.3, IBM DB2 10.1, latest extlib for xpages)