Hacker News new | ask | show | jobs
by mateuszf 3983 days ago
Though that's also true if it's done application-server side.
1 comments

Yup. Examples: value stored in a table is concatenated into a query without escapement, leaving it vulnerable to injection. Whose job was it to ensure the DB contained clean data? My policy has been to call quote_identifier or quote_literal (PostgreSQL) where applicable, or use typecasts to enforce value literals.