see http://www.igniterealtime.org/community/thread/38452 - Oracle allows 1000 expressions in a prepared statement.
The code looks a little bit bogus as creating such a big PS makes usually little sense.
The thread contains three options how to fix this, either with an Array, with a sub-query or with a join.
Yes, still valid. i reviewed Ashley's patch from Gist, looks good. Will apply for 3.9.2.
Merged patch contributed by Ashley Ward.
Bug found with dogfooding ignite
Patch committed, testing
I think we are good.