-
Notifications
You must be signed in to change notification settings - Fork 107
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
DBI::dbExistsTable #191
Comments
I had similar issues. This particular error is because table_id needs to be |
Is that the desired behavior of |
I get an error for all cases except the unqualified call. i.e.
Finally, Should the call using DBI::Id work? |
Sorry, I haven't been a very good github neighbor. I had ran across this thread while banging my head against the wall at work trying to get things to work and gave my solution. I'm not actually associated in anyway with the R package, so I haven't really kept up or responded. I can't really test it right now, but you could try putting additional fields into your If that doesn't work, my solution was to actually to create my own method for my own specific purposes. For you, if you don't want to specify the catalog/database you could try the following (i haven't tested): or alternatively try `setMethod( dbListTables calls the underlying function
Best of luck! (Sorry for some edits, I cleaned up some things and changed a couple of things). Another edit: Apparently at issue 197 you can set |
by setting |
As mentioned by above posters the arguments for The behavior of I verified that fixing the argument name fixes the original issue, so I will close this. |
Issue Description and Expected Result
The
dbExistsTable()
isn't working correctly for me when the table's schema isn't the default.The
dbExistsTable()
functions finds the table when I don't specify a schema, but not when I do. In the long term-I'm afraid the wrong table (a 2nd table in a different schema) would be manipulated.Database
SQL Server 2016 & 2008
Reproducible Example
Session Info
edit: removed some intermediate debugging code.
The text was updated successfully, but these errors were encountered: