Conversation
|
The update breaks an existing test which passes to dbQuoteIdentifier an I would argue that the new behavior is correct, given the spec for dbQuoteIdentifier(). If so, the fix is to change the list_objects_features test in spec-sql-list-objects.R to attempt quoting/unquoting only objects that have a table name (i.e. is_prefix is false). If the preference is to retain the roundtrip rather than a valid SQL expression, the fix is to change the regex in dbUnquoteIdentifier() to accept zero or more characters after a |
Modifies RPostgres' own dbUnquoteIdentifier() to parse catalog.schema.table specifications without each component being enclosed by double-quotes, as required to work with dbplyr.
Fixes r-dbi/DBI#277.