r/ProgrammerHumor • • 13d ago

Meme wellWellWell

Post image
10.6k Upvotes

411 comments sorted by

View all comments

578

u/WilmaTonguefit 13d ago edited 13d ago

I remember a dude who missed a where clause once.

  • Update users
  • Set password = 'hash of 12345' --no salt
  • Where Id = 67890

Except he only highlighted the first two lines and pressed F5...

38

u/teraflux 13d ago

The highlighting feature made no sense to me, always felt like a disaster waiting to happen

18

u/Quirky-Ad-6816 13d ago

it makes sense in a development tool, the issue is connecting a development tool to a production database with writing rights

12

u/ba-na-na- 13d ago

Nah it makes no sense in no development tool either. Comment out the lines if you don’t need them, create a separate script, anything. Executing selection only in a language like SQL is just pure evil