Browse Source

Handle *interface{}

bits01 8 years ago
parent
commit
cea8deae8c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      redis/scan.go

+ 2 - 0
redis/scan.go

@@ -187,6 +187,8 @@ func convertAssign(d interface{}, s interface{}) (err error) {
 		switch d := d.(type) {
 		switch d := d.(type) {
 		case *string:
 		case *string:
 			*d = string(s)
 			*d = string(s)
+		case *interface{}:
+			*d = s
 		case nil:
 		case nil:
 			// skip value
 			// skip value
 		default:
 		default: