Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you build the query at runtime based on whichever arguments are available, it is quite easy for missing arguments to slip through to the inner query generator and end up with a blank where clause.


a blank where clause throws an error (in mySQL at least) as it should do. Or will the query generator respond to missing arguments by removing the where clause altogether? In which case that's some pretty nasty behaviour.


Depends on the flavor of SQL. But also, might not be a totally missing where clause, but just an incomplete one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: