Skip to content

Commit

Permalink
Removed superfluous WHERE clause in second SELECT statement
Browse files Browse the repository at this point in the history
  • Loading branch information
timmarch committed Jul 19, 2016
1 parent d6f36e1 commit 4ca9ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/getSymbols.R
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ function(Symbols,env,return.class='xts',
if (!is.null(from) & !is.null(to)) {
query <- paste("SELECT ", paste(db.fields, collapse = ","), " FROM ", paste("`", Symbols[[i]], "`", sep = ""), " WHERE date >= '", from, "' AND date <= '", to, "' ORDER BY date")
} else {
query <- paste("SELECT ", paste(db.fields, collapse = ","), " FROM ", paste("`", Symbols[[i]], "`", sep = ""), " WHERE date ORDER BY date")
query <- paste("SELECT ", paste(db.fields, collapse = ","), " FROM ", paste("`", Symbols[[i]], "`", sep = ""), " ORDER BY date")
}

rs <- DBI::dbSendQuery(con, query)
Expand Down

0 comments on commit 4ca9ebf

Please sign in to comment.