DEV Community

Discussion on: What is SQL injection and how do I avoid it in Go?

Collapse
 
jvanbruegge profile image
Jan van Brügge

Is database/sql ecaping or placeholders with precompiled queries? If it's the former, you sould stop recommending it. If it's the ladder, you should make that a bit clearer in your article

Collapse
 
joncalhoun profile image
Jon Calhoun • Edited

I just realized I didn't show an example of using placeholders in this article which makes this clearer. As stated in another comment, I'm going to update shortly to make this more explicit.

Edit: Done. Is that clearer now?