You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to an error which is not caught when running
err := dbmap.SelectOne(&user, "SELECT * FROM users WHERE username = $1 and password = $2", postedUser.Username, postedUser.Password)
I'd suggest to put in after the db connection has been opened
db.Exec("DROP TABLE IF EXISTS users;")
The text was updated successfully, but these errors were encountered:
This leads to an error which is not caught when running
err := dbmap.SelectOne(&user, "SELECT * FROM users WHERE username = $1 and password = $2", postedUser.Username, postedUser.Password)
I'd suggest to put in after the db connection has been opened
db.Exec("DROP TABLE IF EXISTS users;")
The text was updated successfully, but these errors were encountered: