Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

between operator in sqlite #503

Closed
rpremraj opened this issue Jul 21, 2014 · 0 comments
Closed

between operator in sqlite #503

rpremraj opened this issue Jul 21, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@rpremraj
Copy link

@rpremraj rpremraj commented Jul 21, 2014

Hi,

Can dplyr support the between operator when working with sqlite?

Sadly the following fails:

data <- lahman_sqlite()
tbl(data, "AllstarFull") %>% filter(between(yearID, 1933, 1947))
Source: sqlite 3.7.17 [C:\Users\.../lahman.sqlite]
Error in sqliteExecStatement(conn, statement, ...) : 
  RS-DBI driver: (error in statement: near "BETWEEN": syntax error)

But this works:

sql.conn <- dbConnect(dbDriver("SQLite"), "C:/.../lahman.sqlite")
dbGetQuery(sql.conn, "select * from AllstarFull WHERE yearID BETWEEN 1934 AND 1947")
@hadley hadley added this to the 0.3 milestone Aug 1, 2014
@hadley hadley self-assigned this Aug 1, 2014
@hadley hadley closed this in fd9dc17 Aug 1, 2014
krlmlr pushed a commit to krlmlr/dplyr that referenced this issue Mar 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants