The sql-query is generated in the python module.
The database is PostgreSQL.
In sql-query there is a comparison with a substring:
'''
SELECT *
FROM TableTemp
WHERE "SomeColumn" LIKE '%{0}%'
'''.format(<some_string>)
If the string is:
%' --
Then the check will always return "True".
Additionally, this is an opportunity to do sql-injection
Prompt, how correctly to process a string that it was considered at search, but did not crash request and there were sql-injections?
UPD:
The question is settled. The decision in the commentary