mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-19 00:41:28 -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
|
@ -411,7 +411,7 @@ class Index(object):
|
|||
|
||||
self.executed_query = query
|
||||
|
||||
if exec_sql(self, query, ddl=True, add_to_executed=False):
|
||||
if exec_sql(self, query, return_bool=True, add_to_executed=False):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
@ -447,7 +447,7 @@ class Index(object):
|
|||
|
||||
self.executed_query = query
|
||||
|
||||
if exec_sql(self, query, ddl=True, add_to_executed=False):
|
||||
if exec_sql(self, query, return_bool=True, add_to_executed=False):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue