Close closes the MultiResultReader and returns the first error that occurred during the MultiResultReader's use.
()
| 1695 | |
| 1696 | // Close closes the MultiResultReader and returns the first error that occurred during the MultiResultReader's use. |
| 1697 | func (mrr *MultiResultReader) Close() error { |
| 1698 | for !mrr.closed { |
| 1699 | _, err := mrr.receiveMessage() |
| 1700 | if err != nil { |
| 1701 | return mrr.err |
| 1702 | } |
| 1703 | } |
| 1704 | |
| 1705 | return mrr.err |
| 1706 | } |
| 1707 | |
| 1708 | // ResultReader is a reader for the result of a single query. |
| 1709 | type ResultReader struct { |