I have query with special characters and I am using "escape" in it. It works fine for single filter but multiple filters it gives ORA-01722: invalid number exception. Example:
<some query>
and this_.NAME like '%<some_string>%' escape '\'
and this_.ID IN ()
this will throw exception. But, If I change order, like below, it works:
<some query>
and this_.ID IN ()
and this_.NAME like '%<some_string>%' escape '\'
any help would be appreciated.
SELECT DISTINCT), you might notice that the second query (with the "changed order") fails as well. - Littlefootand this_.NAME like ...and run the query; what happens? Then comment theand this_.ID ...and un-comment theand this_.NAME ...and run it again. Why? To find out which one of those conditions is responsible for the error & narrow further investigation. - Littlefootescapehas to do with it. Is there even a '\' in your wildcard? - William Robertson