-
Notifications
You must be signed in to change notification settings - Fork 79
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
unnamed Id()
breaks dbQuoteIdentifier()
#453
Comments
Thanks for the heads-up. What do you mean by "breaks"? Is this different from "a feature that is not yet implemented here"? |
Line 287 in 73dbac8
r-dbi/DBI#173 Not a contradiction per se, but 🤔 |
Aren't all bugs just features not yet implemented? 😄 Just saw, so I guess: "Great minds..." 😉 |
The NEWS item you mentioned is not about component names, but about the names of the resulting vector. |
Technically true, but don't the names for the resulting vector usually stem from the component names (if |
list(
A = c(a = 1, b = 2),
B = c(a = 3, c = 4)
) This is about the outer names A and B, not the inner (component) names a and b. |
Sorry, I may have misunderstood. Did you mean whether I think this might become a bigger issue beyond implementing the change here? Well, I was vaguely sceptical of the unnamed Id change at first, because Hadley's assertion "we never actually use them, never need to care about them" is obviously not true (see above - though replacing "never" with "rarely" makes it true again) and without the names it can be hard to tell which database structure a component is referring to. It is comparable to matching arguments by name and by position and we're essentially losing the option to match by name. Anyway, re "not yet implemented": #372 should fix this issue now. |
Not so rarely after all: Line 135 in f15f8f4
Line 170 in f15f8f4
RPostgres/R/dbListObjects_PqConnection_ANY.R Lines 25 to 27 in f15f8f4
So right now I am more sceptical again, but I will have to look at this again with a clear head. |
I assume r-dbi/DBI#422 will have to be implemented here as well, @krlmlr?
What was the answer to your question? Why would we throw away information? RPostgres currently relies on this here
and here
and then in the places mentioned one post up ☝🏻. |
Dealt with most of the fallout. I suspect Issues for tests: r-dbi/DBItest#340, r-dbi/DBItest#367. Please open a new issue linking here if needed. |
r-dbi/DBI#417, i.e. allowing unnamed components in
Id()
, breaksdbQuoteIdentifier()
(dbQuoteIdentifier_PqConnection_Id
specifically), because the latter currently relies (and checks for) on component names.Session info
The text was updated successfully, but these errors were encountered: