2
0

Restructure *Rows.Values() to use Get()

This commit is contained in:
Jack Christensen
2017-03-11 20:07:31 -06:00
parent 57494a6a0f
commit 7da69cd3db
2 changed files with 26 additions and 56 deletions
+1 -5
View File
@@ -246,11 +246,7 @@ func getCurrentTimeline(t *testing.T, rc *pgx.ReplicationConn) int {
if e != nil {
t.Error(e)
}
timeline, e := strconv.Atoi(values[1].(string))
if e != nil {
t.Error(e)
}
return timeline
return int(values[1].(int32))
}
t.Fatal("Failed to read timeline")
return -1