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

Better parsing errors #219

Open
hadley opened this issue Jul 26, 2024 · 0 comments
Open

Better parsing errors #219

hadley opened this issue Jul 26, 2024 · 0 comments
Milestone

Comments

@hadley
Copy link
Member

hadley commented Jul 26, 2024

> DBI::dbGetQuery(con, "SELECT count(*), date FROM SELECT CAST(time AS date), count(*) GROUP by date;")
Error:
! {"exception_type":"Parser","exception_message":"syntax error at or near \"SELECT\"","position":"27","error_subtype":"SYNTAX_ERROR"}

Would be nicer as:

Error in dbGetQuery():
* Failed to parse SQL
* syntax error at or near \"SELECT\"

Or similar

@hadley hadley added this to the 1.0.0 milestone Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant