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

Disable usage of "%s" #60

Merged
merged 2 commits into from
May 21, 2018
Merged

Disable usage of "%s" #60

merged 2 commits into from
May 21, 2018

Conversation

jrib
Copy link

@jrib jrib commented May 15, 2018

Description

Users can already use parameters with "$N". This makes it so that users
do not need to escape "%" with "%%" when using named queries.

See dbcli/pgcli#865.

The documentation on the website will have to be updated; is that on git somewhere?

Checklist

  • I've added this contribution to the changelog.rst.

Users can already use parameters with "$N".  This makes it so that users
do not need to escape "%" with "%%" when using named queries.

See dbcli/pgcli#865.
@amjith
Copy link
Member

amjith commented May 15, 2018

@amjith
Copy link
Member

amjith commented May 15, 2018

The PR looks good. It is currently failing on a lint check. You can fix it with this command:

pep8radius master --docformatter --diff --in-place

You might have to pip install pep8radius in your virtualenv to make it work.

@amjith
Copy link
Member

amjith commented May 15, 2018

Let me know if you'd like to do that, if not, I can fix it separately.

@jrib
Copy link
Author

jrib commented May 15, 2018 via email

@amjith
Copy link
Member

amjith commented May 15, 2018 via email

@jrib
Copy link
Author

jrib commented May 20, 2018

Changes for pep8 should be included now

@codecov-io
Copy link

codecov-io commented May 20, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@9cabc39). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master     #60   +/-   ##
========================================
  Coverage          ?   53.4%           
========================================
  Files             ?       6           
  Lines             ?     955           
  Branches          ?       0           
========================================
  Hits              ?     510           
  Misses            ?     445           
  Partials          ?       0
Impacted Files Coverage Δ
pgspecial/iocommands.py 37.83% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9cabc39...d16f1fb. Read the comment docs.

jrib pushed a commit to jrib/pgcli.com that referenced this pull request May 20, 2018
@amjith
Copy link
Member

amjith commented May 21, 2018

Very nice!

I like that the error message is helpful.

🥇

@amjith amjith merged commit d38e5b1 into dbcli:master May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants