Interesting indeed!
This is a strong argument in favour of using static SQL in apps, instead of dynamic SQL.
This way, the query is already analysed and interpreted at compile time, and the runtime provided arguments are just plugged into the placeholders as text, without interpretation. Exactly as one would expect.