mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-19 08:51:25 -07:00
postgres: make interfaces of exec_sql clearer (#43)
(cherry picked from commit fb6583a15c1f7fd8e48f4f3ef214ed4e74c3d8c6)
This commit is contained in:
parent
07ecfc940c
commit
1c550cd4ef
10 changed files with 44 additions and 45 deletions
|
@ -253,7 +253,7 @@ class PgCopyData(object):
|
|||
if self.changed:
|
||||
self.executed_queries.append(' '.join(query_fragments))
|
||||
else:
|
||||
if exec_sql(self, ' '.join(query_fragments), ddl=True):
|
||||
if exec_sql(self, ' '.join(query_fragments), return_bool=True):
|
||||
self.changed = True
|
||||
|
||||
def copy_to(self):
|
||||
|
@ -288,7 +288,7 @@ class PgCopyData(object):
|
|||
if self.changed:
|
||||
self.executed_queries.append(' '.join(query_fragments))
|
||||
else:
|
||||
if exec_sql(self, ' '.join(query_fragments), ddl=True):
|
||||
if exec_sql(self, ' '.join(query_fragments), return_bool=True):
|
||||
self.changed = True
|
||||
|
||||
def __transform_options(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue