Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bbcbasic
· 9y ago · 0 comments
Sounds dangerous!
Comments
[–]
atemerev
9y ago
No more than DELETE FROM ... WHERE ... wait, where is WHERE?
[–]
philsnow
9y ago
Even this can be made safe(r) if you only only only connect to your database nthrough a proxy that sanitizes queries. IIRC vitess adds an implicit LIMIT 10 to queries that don't have a limit.
[–]
cdmckay
9y ago
A simple solution is to not allow UPDATE or DELETE statements without a WHERE clause.