Merge pull request #981 from taosdata/patch/tbase-1381

fix tbase-1381
This commit is contained in:
slguan 2019-12-21 12:30:37 +08:00 committed by GitHub
commit a6c2214440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 19 deletions

View File

@ -27,11 +27,11 @@ import "C"
import (
"database/sql/driver"
"errors"
"strconv"
"unsafe"
"fmt"
"io"
"strconv"
"time"
"unsafe"
)
/******************************************************************************
@ -91,6 +91,7 @@ func (rows *taosSqlRows) readRow(dest []driver.Value) error {
row := C.taos_fetch_row(result)
if row == nil {
rows.rs.done = true
C.taos_free_result(result)
rows.mc = nil
return io.EOF
}