Android Question PostString Too many parameters


Well-Known Member
Licensed User

I try to use HttpUtils2 and okHttp but I get that error when I compile.

Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Error occurred on line: 75
job999.PostString("", "SELECT Code, Name, Gid FROM salesperson ORDER BY name")
Word: SELECT Code, Name, Gid FROM salesperson ORDER BY name


Well-Known Member
Licensed User
It's good you solved your problem, but I'd like to take the opportunity to recommend not sending actual SQL queries to the server. I see you're using https, but I still consider it an extreme security risk, what you're doing.

I'd recommend creating a real API on the server instead, that contains the queries and simply return the answers to the client.
Upvote 0