I'm using PyCharm and I have an error on this SQL statement:
SELECT * FROM table WHERE id= %(id)s
The code syntax inspection says:
<expression> expected, got '%'
Is there a way to disable this error message? In other words, how do I make PyCharm recognize placeholders in SQL statements?
Edit
Here is my solution:
For %(id)s
and %s
you have to had %\((\w+)\)s
and %s
in Settings/Preferences | Tools | Database | User parameters
and select All languages
not only SQL