Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: At each startup a new row for the user is add to the database #17

Open
johnny324 opened this issue Sep 11, 2014 · 0 comments
Open

Comments

@johnny324
Copy link

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;")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant