Skip to content

Commit

Permalink
use dbFetch() instead of fetch()
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 29, 2016
1 parent 1313baa commit d8407fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Imports:
tibble,
magrittr,
lazyeval (>= 0.1.10),
DBI (>= 0.4.1)
DBI (>= 0.5)
Suggests:
RSQLite (>= 1.0.0),
RMySQL,
Expand Down
4 changes: 2 additions & 2 deletions R/query.r
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Query <- R6::R6Class("Query",
res <- dbSendQuery(self$con, self$sql)
on.exit(dbClearResult(res))

out <- fetch(res, n)
out <- dbFetch(res, n)
res_warn_incomplete(res)
out
},
Expand All @@ -51,7 +51,7 @@ Query <- R6::R6Class("Query",
on.exit(dbClearResult(qry))

while (!dbHasCompleted(qry)) {
chunk <- fetch(qry, chunk_size)
chunk <- dbFetch(qry, chunk_size)
callback(chunk)
}

Expand Down

0 comments on commit d8407fa

Please sign in to comment.