Answer the question
In order to leave comments, you need to log in
Why error 1054?
The code
res, err := db.G(DbName).Exec("INSERT INTO users(`login`, `email`, `pass`, `reg_time`, `auth_time`)"+
"VALUES ($1, $2, $3, $4, $5)", name, email, pass, timestamp, timestamp)
Error 1054: Unknown column '$1' in 'field list'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question