-
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
Name and schema in DBI::Id #214
Comments
Thanks. The preferred syntax is |
Regarding |
So what @krlmrl, what is the desired resolution here? I don't really want to put Id validating code throughout all the odbc methods... |
I think we need to access the components of an |
Yeah, that order and naming is right |
This seems now to be resolved, we now use the names of the Id rather than the position. |
@troelsy commented on Aug 9, 2018, 8:03 AM UTC:
I think I found a bug when working with DBI::Id. DBI::Id requires that you specify 'name' and 'schema', which makes sense, but the order of the arguments must be schema-name and not name-schema. It seems like it doesn't actually use the name of the arguments.
I made this example, to show the error. You can try with both 'table_id'
If you run it as is, you'll get:
If you use the other definition of 'table_id', you'll get:
Notice the error message saying the schema is "my_table". I'm using Ubuntu 16.04.4 LTS with PostgreSQL 9.5.12
This issue was moved by krlmlr from r-dbi/DBI#255.
The text was updated successfully, but these errors were encountered: