Bug 164295 - databases/godis: Fixed authenticaton to database != 0
Summary: databases/godis: Fixed authenticaton to database != 0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Scheidell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 21:30 UTC by Grzegorz Blach
Modified: 2012-01-19 11:20 UTC (History)
0 users

See Also:


Attachments
godis.diff.txt (1.30 KB, text/plain)
2012-01-18 21:30 UTC, Grzegorz Blach
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Blach 2012-01-18 21:30:12 UTC

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 ----
Comment 1 Michael Scheidell freebsd_committer freebsd_triage 2012-01-19 01:35:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->scheidell

I'll take it
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-01-19 01:54:04 UTC
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"
Comment 3 Michael Scheidell freebsd_committer freebsd_triage 2012-01-19 11:19:57 UTC
State Changed
From-To: open->closed

Committed, Thanks