I know that I should use it when I deal with data of TEXT type (and I guess the ones that fall back to TEXT), but is it the only case?
Example:
UPDATE names SET name='Mike' WHERE id=3 I'm writing an SQL query auto generation in C++, so I want to make sure I don't miss cases, when I have to add quotes.
idis INTEGER but you pass'3'as a value to be compared, that may be accepted and the conversion done at some point in the statement preparation or execution. Other DBMS will simply give you a mismatched type error from the start.