func (stmt *Statement) Fetch() (bool, *ODBCError) { ret := C.SQLFetch(C.SQLHSTMT(stmt.handle)) if ret == C.SQL_NO_DATA { return false, nil } if !Success(ret) { err := FormatError(C.SQL_HANDLE_STMT, stmt.handle) return false, err } return true, nil }
func SQLFetch(statementHandle SQLHSTMT) (ret SQLRETURN) { r := C.SQLFetch(C.SQLHSTMT(statementHandle)) return SQLRETURN(r) }