Skip to content
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

More robust quoted names handling #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dvarrazzo
Copy link
Contributor

Added a proper parser for a sequence of dot-separated quoted names.

Let quote_id do the merging back into dot-separated quoted names string, minimising the use of ad-hoc %s.%s where sometimes one side got unquoted.

The '%s.%s' % (quote_id(foo), quote_id(bar)) is used inconsistently.
@dvarrazzo dvarrazzo force-pushed the more-robust-quoted-names-handling branch from 37752c7 to e712ba6 Compare July 28, 2017 15:14
@dvarrazzo
Copy link
Contributor Author

Ugh, I see a lots of things are failing in the test: this MR requires more work. It was necessary though to handle the case of a db with foo."bar.baz" names (I can dump that db with this and other changes).

@jmafc
Copy link
Member

jmafc commented Mar 8, 2018

@dvarrazzo Daniele, do you have a minimal test case? I presume it would first suffice to do a CREATE TABLE foo."bar.baz", but it seems we also should test CREATE TABLE "foo.bar"."Baz" and not just for tables (but we can start with schemas and tables).

@jmafc jmafc added the regexp label Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants