Hello team,
I have a command in jRDC server:
At the first question mark (IN clause) user can pass the type of the gym in order to filter them. This is comma seperated values for example:
At b4a, If I pass a single filter e.g. Crossfit without apostrophe, command working well. If I add apostrophe then does not return any value.
If I pass two filters without apostrophe then does not work.
I can't really understand where the problem stands.
If I test it at DBeaver as a sql script by adding two filters with apostrophe: 'Crossfit','HYROX' everything working fine.
Does anyone have any idea?
I have a command in jRDC server:
B4X:
sql.filterGymsCount = SELECT COUNT(*) FROM gyms g JOIN gymTypes gt ON g.id = gt.id_gym JOIN types t ON gt.id_type = t.id WHERE t.name IN (?) GROUP BY g.id HAVING COUNT(DISTINCT t.name) = ?
At the first question mark (IN clause) user can pass the type of the gym in order to filter them. This is comma seperated values for example:
B4X:
'Crossfit','HYROX'
At b4a, If I pass a single filter e.g. Crossfit without apostrophe, command working well. If I add apostrophe then does not return any value.
If I pass two filters without apostrophe then does not work.
I can't really understand where the problem stands.
If I test it at DBeaver as a sql script by adding two filters with apostrophe: 'Crossfit','HYROX' everything working fine.
Does anyone have any idea?