mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 13:14:26 -07:00
improve the test file and add fragment files for issue 671
This commit is contained in:
parent
8ef32e5eff
commit
596743374b
2 changed files with 17 additions and 5 deletions
|
@ -40,6 +40,11 @@
|
|||
query: 'select @@GLOBAL.sql_mode AS sql_mode'
|
||||
register: sql_mode_orig
|
||||
|
||||
- name: Issue-671| Assert sql_mode_orig
|
||||
assert:
|
||||
that:
|
||||
- sql_mode_orig.query_result[0][0].sql_mode != None
|
||||
|
||||
- name: Issue-671| enable sql_mode ANSI_QUOTES
|
||||
mysql_variables:
|
||||
<<: *mysql_params
|
||||
|
@ -47,11 +52,6 @@
|
|||
value: '{{ sql_mode_orig.query_result[0][0].sql_mode }},ANSI_QUOTES'
|
||||
mode: "{% if db_engine == 'mariadb' %}global{% else %}persist{% endif %}"
|
||||
|
||||
- name: Issue-671| test setup | get value of GLOBAL.sql_mode
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
query: 'select @@GLOBAL.sql_mode'
|
||||
|
||||
- name: Issue-671| Copy SQL scripts to remote
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue