DEV Community

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

Collapse
 
eduardo_gpg profile image
Eduardo Ismael..

One more contribution, multiple statements are unsupported for database/sql in Exec function, No matter if we send a single argument for this function, if this arg has sql injection the Exec function will return us a error.

SELECT * FROM users WHERE email='''; DROP TABLE users;'''; doesnt work