select fot struct
This commit is contained in:
parent
07364ae267
commit
7a98c5e3d9
2
main.go
2
main.go
|
@ -133,7 +133,7 @@ func Get(username string) (*UserData, bool) {
|
||||||
log.Printf("scsusers.Get: %s", err.Error())
|
log.Printf("scsusers.Get: %s", err.Error())
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
q = fmt.Sprintf("select key, value, id from %s_meta where user=%d", c.TablePrefix, u.UserID)
|
q = fmt.Sprintf("select meta_key, meta_value, id from %s_meta where user=%d", c.TablePrefix, u.UserID)
|
||||||
err = c.db.Select(&u.Meta, q)
|
err = c.db.Select(&u.Meta, q)
|
||||||
if err != nil && err != sql.ErrNoRows {
|
if err != nil && err != sql.ErrNoRows {
|
||||||
log.Printf("scsuser.Get: select: %s", err.Error())
|
log.Printf("scsuser.Get: select: %s", err.Error())
|
||||||
|
|
Loading…
Reference in New Issue