diff --git a/postgresql/database_test.go b/postgresql/database_test.go index 97e41f4896162ccbd5d5e5c55734b1cb24e70d5a..1dc7c3ca48bf8f22d30f55400b7ff81c8016be0d 100644 --- a/postgresql/database_test.go +++ b/postgresql/database_test.go @@ -496,38 +496,6 @@ func TestResultFetch(t *testing.T) { res.Close() - // NOTE: tags are required.. unless a different type mapper - // is specified.. - - // Dumping into an struct with no tags. - // rowStruct := struct { - // ID uint64 `db:"id,omitempty"` - // Name string `db:"name"` - // }{} - - // res = artist.Find() - - // for { - // err = res.Next(&rowStruct) - - // if err == db.ErrNoMoreRows { - // break - // } - - // if err == nil { - // if rowStruct.ID == 0 { - // t.Fatalf("Expecting a not null ID.") - // } - // if rowStruct.Name == "" { - // t.Fatalf("Expecting a name.") - // } - // } else { - // t.Fatal(err) - // } - // } - - // res.Close() - // Dumping into a tagged struct. rowStruct2 := struct { Value1 uint64 `db:"id"` @@ -557,7 +525,7 @@ func TestResultFetch(t *testing.T) { res.Close() - // Dumping into an slice of maps. + // Dumping into a slice of maps. allRowsMap := []map[string]interface{}{} res = artist.Find()