2
0

Fix queryRow leftover message on conn

those leftover messages are tossed by ensureConnectionReadyForQuery but
in the batch use case this is not called between each query.
This commit is contained in:
Gaspard Douady
2017-09-21 11:04:19 +02:00
parent fd7b776540
commit b4f9d149c1
2 changed files with 51 additions and 0 deletions
+2
View File
@@ -34,6 +34,8 @@ func (r *Row) Scan(dest ...interface{}) (err error) {
}
rows.Scan(dest...)
for rows.Next() {
}
rows.Close()
return rows.Err()
}