mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-21 09:51:31 -07:00
mysql_role: enable autocommit (#500)
* mysql_role: enable autocommit * Add changelog fragment
This commit is contained in:
parent
a5f3296d73
commit
b8d6474540
2 changed files with 7 additions and 2 deletions
|
@ -1008,7 +1008,8 @@ def main():
|
|||
cursor, db_conn = mysql_connect(module, 'root', '', config_file,
|
||||
ssl_cert, ssl_key, ssl_ca, db,
|
||||
connect_timeout=connect_timeout,
|
||||
check_hostname=check_hostname)
|
||||
check_hostname=check_hostname,
|
||||
autocommit=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
@ -1016,7 +1017,8 @@ def main():
|
|||
cursor, db_conn = mysql_connect(module, login_user, login_password,
|
||||
config_file, ssl_cert, ssl_key,
|
||||
ssl_ca, db, connect_timeout=connect_timeout,
|
||||
check_hostname=check_hostname)
|
||||
check_hostname=check_hostname,
|
||||
autocommit=True)
|
||||
|
||||
except Exception as e:
|
||||
module.fail_json(msg='unable to connect to database, '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue