Auth must be called before Select #4

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@MagikBSD
Contributor

MagikBSD commented Jan 18, 2012

When I try to connect to database != 0 with authentication. I must call Auth command before Select command.

Simple code that should work after my change:

---- 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 ----

@simonz05

This comment has been minimized.

Show comment Hide comment
@simonz05

simonz05 Jan 18, 2012

Owner

Thanks for reporting the issue!

I added your patch and included some tests in commit 4549f43

Simon.

Owner

simonz05 commented Jan 18, 2012

Thanks for reporting the issue!

I added your patch and included some tests in commit 4549f43

Simon.

@simonz05 simonz05 closed this Jan 18, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment