Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

commit=True by default in PostgresNode.execute() and document it. #28

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

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

arssher
Copy link
Contributor

@arssher arssher commented Nov 16, 2017

Old default could lead to astonishing "where are my damned rows?" emotions.

Old default could lead to astonishing "where are my damned rows?" emotions.
@codecov-io
Copy link

codecov-io commented Nov 16, 2017

Codecov Report

Merging #28 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #28   +/-   ##
=======================================
  Coverage   93.79%   93.79%           
=======================================
  Files           4        4           
  Lines         773      773           
=======================================
  Hits          725      725           
  Misses         48       48
Impacted Files Coverage Δ
testgres/testgres.py 92.14% <100%> (ø) ⬆️

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 aaf73ff...5f57cb6. Read the comment docs.

@@ -962,7 +962,7 @@ def poll_query_until(self,

raise TimeoutException('Query timeout')

def execute(self, dbname, query, username=None, commit=False):
def execute(self, dbname, query, username=None, commit=True):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ildus, @gsmol, @sfalkon, у вас есть тесты, которые завязаны на commit=False по умолчанию?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@funbringer у меня нет, тем более я всегда делал вручную, без параметра

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет таких

@funbringer
Copy link
Collaborator

Nice one, thanks!

@funbringer funbringer merged commit a1ac4fb into postgrespro:master Nov 16, 2017
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.

5 participants