Skip to content

Conversation

@krlmlr
Copy link
Collaborator

@krlmlr krlmlr commented Oct 26, 2024

Better call context. With #521:

library(DBI)

drv <- duckdb::duckdb()
con <- dbConnect(drv)

sql <- "SELECT count(*), date FROM SELECT CAST(time AS date), count(*) GROUP by date;"
dbGetQuery(con, sql)
#> Error in `dbSendQuery()` at DBI/R/dbGetQuery_DBIConnection_character.R:5:3:
#> ! rapi_prepare: Failed to extract statements:
#> Parser Error: syntax error at or near "SELECT"
#> LINE 1: SELECT count(*), date FROM SELECT CAST(time AS date), count(*) GRO...
#>                                    ^

Created on 2024-10-26 with reprex v2.1.1

@krlmlr krlmlr changed the title f rethrow Generated rethrow code Oct 26, 2024
@krlmlr krlmlr enabled auto-merge October 26, 2024 18:41
@krlmlr krlmlr changed the title Generated rethrow code feat: Rethrow errors with rlang if installed Oct 26, 2024
@krlmlr krlmlr added this pull request to the merge queue Oct 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 26, 2024
@krlmlr krlmlr added this pull request to the merge queue Oct 27, 2024
Merged via the queue into main with commit 0efaba0 Oct 27, 2024
11 checks passed
@krlmlr krlmlr deleted the f-rethrow branch October 27, 2024 06:46
@krlmlr krlmlr mentioned this pull request Oct 31, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants