News for hackers. Stuff that matters.
Re:Compile Time Prevention of SQL-Injections in Rust by alexandernst on Tuesday May 22, 2018 @09:08AM (#17125621)
SQL Inject is not only a ' character. SQL Inject could be a blind query, subselect attack, time attack and so on and so on. This completely fails to prevent pretty much anything except the very naive and silly attacks.
Re:Compile Time Prevention of SQL-Injections in Rust by CiPHPerCoder on Tuesday May 22, 2018 @09:39AM (#17125816)
No it doesn't.

The argument isn't "block ' characters to stop SQL injection" it's "force the developer to use prepared statements and no dynamically constructed queries".

Re:Compile Time Prevention of SQL-Injections in Rust by coldtea on Tuesday May 22, 2018 @09:44AM (#17125858)
First, no, it prevents much more attacks.

Second, the naive and silly attacks are the default definition of SQL injection -- and the most commonly found holes, so even if it just prevented those that would be still a huge help. Nothing statically ensures that at runtime except the programmer's due diligence.

Re:Compile Time Prevention of SQL-Injections in Rust by charriu on Tuesday May 22, 2018 @09:14AM (#17125656)
This prevents dynamically created queries using lifetimes. It does not search for ' characters.
Re:Compile Time Prevention of SQL-Injections in Rust by swirepe on Tuesday May 22, 2018 @09:17AM (#17125675)
Yup. But it does it at compile time for basically no work.