We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be424d2 + c1afc64 commit ea100b2Copy full SHA for ea100b2
sqlite3.go
@@ -1912,11 +1912,11 @@ func (rc *SQLiteRows) DeclTypes() []string {
1912
1913
// Next move cursor to next.
1914
func (rc *SQLiteRows) Next(dest []driver.Value) error {
1915
+ rc.s.mu.Lock()
1916
+ defer rc.s.mu.Unlock()
1917
if rc.s.closed {
1918
return io.EOF
1919
}
- rc.s.mu.Lock()
- defer rc.s.mu.Unlock()
1920
rv := C.sqlite3_step(rc.s.s)
1921
if rv == C.SQLITE_DONE {
1922
0 commit comments