The following query gave me this error:
-901 Dynamic SQL Error SQL error code = -901 Implementation limit exceeded Too many values (more than 1500) in member list to match against
SELECT
A, B, C
FROM
SampleTable
WHERE A in ( 15806,15809,22069,22135.....)
I inserted more than 1500 values on this in clause, hence, the error. I found a solution by replacing "in" to "similar to" as the following:
SELECT
A, B, C
FROM
SampleTable
WHERE A similar to ('15806|15809|22069|22135.....')
It seems to work, I can inject more than 1500 values. But this doesn't feel right, can someone confirm this is a viable solution to the error above? The ids are in a string list, so nothing I can do to change those values. I looked at the similar to
documentation of Firebird and it doesn't mention anything about inserting it in where clause with ids as the way I'm doing it.