Skip to content

Commit 7f536bd

Browse files
committed
add comment for nextSet once
1 parent f5a683d commit 7f536bd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/xsql/rows.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ var (
2323
)
2424

2525
type rows struct {
26-
conn *conn
27-
result result.BaseResult
26+
conn *conn
27+
result result.BaseResult
28+
29+
// nextSet once need for get first result set as default.
30+
// Iterate over many result sets must be with rows.NextResultSet()
2831
nextSet sync.Once
2932
}
3033

0 commit comments

Comments
 (0)