You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
README "Design notes" says connection and result share one external pointer #670
The "Design notes" section of README.md ends with: "and both the connection and result objects point to the same external pointer" (README.md#L84-L87). That is no longer true: a PqResult has its own ptr slot, created by result_create(conn@ptr, ...) in R/dbSendQuery_PqConnection.R, and the C++ connection only remembers its current result (pCurrentResult_ in src/DbConnection.cpp); starting a new query cleans up that result and cancels it if it is incomplete.
Reproducer (needs a running PostgreSQL server):
library(RPostgres)
con<- dbConnect(Postgres())
res<- dbSendQuery(con, "SELECT 1")
identical(con@ptr, res@ptr)
#> [1] FALSE# expected by the README: TRUE
dbClearResult(res)
dbDisconnect(con)
Activity
krlmlr commentedon Nov 29, 2026
Closed to keep the issue tracker for issues reported by others; the work here is still open and tracked with the
status: openlabel.Generated by Claude Code
docs: Correct the README's design notes on connections and results (#672