Currently godis select database and then authenticate to it, this fail because auth command must be called before select. Connecting to db == 0 with authentication works, because db == 0 is default one and select command is not used in this case. How-To-Repeat: Simple code that should work if you can connect to db == 1 with authentication. Change "secret" to your password before use. ---- begin of test.go ---- package main import ( "godis" ) func main() { db := godis.New("", 1, "secret") foo, err := db.Get("foo") if err == nil { println(foo.String()) } else { println(err.String()) } } ---- end of test.go ----
Responsible Changed From-To: freebsd-ports-bugs->scheidell I'll take it
scheidell 2012-01-19 01:53:50 UTC FreeBSD ports repository Modified files: databases/godis Makefile Added files: databases/godis/files patch-conn.go Log: - Fixed authenticaton to database != 0 PR: ports/164295 Submitted by: maintainer Approved by: gabor (maintainer, implicit) Revision Changes Path 1.5 +1 -1 ports/databases/godis/Makefile 1.1 +24 -0 ports/databases/godis/files/patch-conn.go (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, Thanks