In my company's codebase, we hardcode sql queries without using an ORM.
Here's an example of a query we would run:
UPDATE client SET status="active" WHERE client_id=123
Since the query is hardcoded and the parameters are passed in, the code would look like this (Python):
'UPDATE client SET status="{}" WHERE client_id={}'.format('active', 123)
The only place that the parameters are coming from is the code where they are set. There is no case where external users can pass in arguments.
The codebase is not large but is quite sprawling and interrelated, so sanitizing the SQL would require a legitimate reason for the time spent.
Therefore, is there a reason to worry about sanitizing the SQL?