Answer the question
In order to leave comments, you need to log in
What characters are not used in sql?
There is a need to store a string in the json base in which there will be sql queries broken by a demeter, that is, for now, the view is approximately like this:
{
somekey: "somedata",
somesql: "SELECT * FROM 'table' WHERE {someval|someval} LIKE {somedata|some_hren}"
}
Answer the question
In order to leave comments, you need to log in
For complete reliability, you can "wrap" requests, for example, in base64 | uuencode, etc. - this will protect against problems with unicode characters, etc.
You need to escape single and double quotes. Everything seems to be.
The pitfall here is different - of course it depends on the specifics of your decision, but I have a strong premonition of a SQL injection vulnerability. You these SQL requests whence and where are going to send? I hope not from the client on the server?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question