release query

This commit is contained in:
Michał Matczuk
2017-07-25 09:13:47 +02:00
parent 6a6b1c8801
commit 51c33ef077
2 changed files with 31 additions and 9 deletions

View File

@@ -89,10 +89,10 @@ func TestExample(t *testing.T) {
for iter.StructScan(&place) {
fmt.Printf("%#v\n", place)
}
iter.Close()
if err := iter.Err(); err != nil {
if err := iter.Close(); err != nil {
t.Fatal("iter:", err)
}
iter.ReleaseQuery()
// gocqlx_test.Place{Country:"Hong Kong", City:"", TelCode:852}
// gocqlx_test.Place{Country:"United States", City:"New York", TelCode:1}
// gocqlx_test.Place{Country:"Singapore", City:"", TelCode:65}