-
Notifications
You must be signed in to change notification settings - Fork 557
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
Auto-complete double quotes for tables/columns with capital letters #67
Comments
Yes it would be a useful feature and I want to do it. It's hard to tell if it'll be easy to do or not. It'll require some parsing changes to parse_utils file. https://github.com/amjith/pgcli/blob/master/pgcli/packages/parseutils.py#L11 You're welcome to take a stab at it. |
hi, |
PR #83 overlaps with this feature request. It add auto-escaping to the columns/tables that are keywords or Uppercased or spaces. But it doesn't do auto-completion if the user opens a double quote. So I'm leaving this issue open to track that feature. :) Cheers! |
Hi, yes I noticed this too but I wasn't sure what had to changed. Maybe just the |
I think it should be a as simple as adding/removing stuff in the cleanup_regex. I haven't had time to deep dive into the code since I announced it. Barely keeping up with reviewing PRs and answering Issues. You're welcome to take a stab at it, otherwise I hope to spend some time this weekend to work on it. :) Cheers! |
This commit afef77a fixes the auto-completion for quoted tables/columns that are auto-escaped. |
This is now released in v0.12.0. |
Is it easy to include double quotes around tables or columns that contain capital letters for auto-complete? If quotes are not included, then postgres takes that name, puts it in all lowercase, does a case-sensitive comparison, and does not find the column or table. Put it in quotes, it skips the lowercase step and finds it.
The text was updated successfully, but these errors were encountered: