mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-23 06:21:45 -07:00
Fix deprecated options from MySQL 8.2 (#662)
* Fix show master status for MySQL 8.2+ * Fix mysqldump option form --master-data to --source-data * Fix incompatibility between mysqldump 8.0 and MySQL 8.4 Installing the same version between the client and the server makes sense anyway. The incompatibility arise when you use mysqldump with --source-data. The the tool tries to perform a SHOW MASTER STATUS which is deprecated in MySQL 8.2+. * Fix missing condition * Fix unit tests * Add a query resolver depending on implementation and version * Sanity * Fix SHOW REPLICA STATUS queries * Fix mariadb's SHOW REPLICA HOSTS query * Fix CHANGE MASTER for MySQL 8.0.23+ * Fix integration test for CHANGE MASTER * Fix integration test for CHANGE MASTER * Fix replication queries for MySQL 8.0.23+ and 8.4+ * Revert file edited by mistake * Enhance tests format
This commit is contained in:
parent
c503dc5b6b
commit
cd9f4fcf57
14 changed files with 503 additions and 94 deletions
|
@ -111,11 +111,24 @@
|
|||
check_implicit_admin: no
|
||||
register: result
|
||||
|
||||
- name: Dump and Import | Assert successful completion of dump operation
|
||||
- name: Dump and Import | Assert successful completion of dump operation for MariaDB and MySQL < 8.2
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.executed_commands[0] is search(".department --master-data=1 --skip-triggers")
|
||||
when:
|
||||
- >
|
||||
db_engine == 'mariadb' or
|
||||
(db_engine == 'mysql' and db_version is version('8.2', '<'))
|
||||
|
||||
- name: Dump and Import | Assert successful completion of dump operation for MySQL >= 8.2
|
||||
assert:
|
||||
that:
|
||||
- result is changed
|
||||
- result.executed_commands[0] is search(".department --source-data=1 --skip-triggers")
|
||||
when:
|
||||
- db_engine == 'mysql'
|
||||
- db_version is version('8.2', '>=')
|
||||
|
||||
- name: Dump and Import | State dump/import - file name should exist (db_file_name)
|
||||
file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue