Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50e02ff

Browse files
committed
change safe_psql() call to execute() in pubsub.py
1 parentd60cdcb commit50e02ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎testgres/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
... replica.catchup() # wait until changes are visible
2929
... print(replica.execute('postgres', 'select count(*) from test'))
3030
PostgresNode(name='...', port=..., base_dir='...')
31-
[(3L,)]
31+
[(3,)]
3232
"""
3333
from .nodeimportPostgresNode
3434

‎testgres/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def drop(self, dbname=None, username=None):
7777
"""
7878
Drop publication
7979
"""
80-
self.node.safe_psql(
80+
self.node.execute(
8181
"drop publication {}".format(self.name),
8282
dbname=dbname,
8383
username=username)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp